Updating generated metadata provider to ensure public types and members are documented
This commit is contained in:
Родитель
b528b47c37
Коммит
0dab4aba6d
|
@ -34,11 +34,16 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
||||||
using Microsoft.Azure.Functions.Worker.Core.FunctionMetadata;
|
using Microsoft.Azure.Functions.Worker.Core.FunctionMetadata;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace {{FunctionsUtil.GetNamespaceForGeneratedCode(context)}}
|
namespace {{FunctionsUtil.GetNamespaceForGeneratedCode(context)}}
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -46,7 +51,10 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
||||||
return Task.FromResult(metadataList.ToImmutableArray());
|
return Task.FromResult(metadataList.ToImmutableArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -72,8 +80,16 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
||||||
{
|
{
|
||||||
string result = $$"""
|
string result = $$"""
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Auto startup class to register the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup
|
public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Configures the <see cref="IHostBuilder"/> to use the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="hostBuilder">The <see cref="IHostBuilder"/> instance to use for service registration.</param>
|
||||||
public void Configure(IHostBuilder hostBuilder)
|
public void Configure(IHostBuilder hostBuilder)
|
||||||
{
|
{
|
||||||
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
||||||
|
|
|
@ -74,8 +74,13 @@ using Microsoft.Extensions.Hosting;
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{{
|
{{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref=""IFunctionMetadataProvider""/> implementation that returns function metadata definitions for the current worker.""/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{{
|
{{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{{
|
{{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -116,6 +121,9 @@ namespace TestProject
|
||||||
if (includeAutoStartupType)
|
if (includeAutoStartupType)
|
||||||
{
|
{
|
||||||
return """
|
return """
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -131,8 +139,16 @@ namespace TestProject
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Auto startup class to register the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup
|
public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Configures the <see cref="IHostBuilder"/> to use the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="hostBuilder">The <see cref="IHostBuilder"/> instance to use for service registration.</param>
|
||||||
public void Configure(IHostBuilder hostBuilder)
|
public void Configure(IHostBuilder hostBuilder)
|
||||||
{
|
{
|
||||||
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
||||||
|
@ -142,6 +158,9 @@ namespace TestProject
|
||||||
}
|
}
|
||||||
|
|
||||||
return """
|
return """
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -74,8 +74,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -136,6 +141,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -94,8 +94,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -120,6 +125,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -219,8 +227,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -245,6 +258,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -333,6 +354,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -450,8 +474,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -508,6 +537,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -599,8 +631,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -633,6 +670,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -711,8 +751,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -745,6 +790,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -73,8 +73,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -96,6 +101,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -159,8 +167,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -181,6 +194,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -249,8 +265,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace MyCompany.MyProject.MyApp
|
namespace MyCompany.MyProject.MyApp
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -272,6 +293,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -95,8 +95,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -119,6 +124,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -209,8 +217,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -234,6 +247,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -334,6 +355,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -398,8 +422,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -420,6 +449,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -484,8 +516,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -507,6 +544,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -580,8 +620,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -629,6 +674,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -78,8 +78,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -101,6 +106,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -165,8 +173,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -188,6 +201,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -79,8 +79,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -105,7 +110,10 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
return Task.FromResult(metadataList.ToImmutableArray());
|
return Task.FromResult(metadataList.ToImmutableArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -169,8 +177,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -196,7 +209,10 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
return Task.FromResult(metadataList.ToImmutableArray());
|
return Task.FromResult(metadataList.ToImmutableArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
|
@ -82,8 +82,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -105,6 +110,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
@ -188,8 +196,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
|
|
||||||
namespace TestProject
|
namespace TestProject
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Custom <see cref="IFunctionMetadataProvider"/> implementation that returns function metadata definitions for the current worker."/>
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
|
||||||
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc/>
|
||||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||||
{
|
{
|
||||||
var metadataList = new List<IFunctionMetadata>();
|
var metadataList = new List<IFunctionMetadata>();
|
||||||
|
@ -237,6 +250,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||||
|
/// </summary>
|
||||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче