Updating generated metadata provider to ensure public types and members are documented
This commit is contained in:
Родитель
b528b47c37
Коммит
0dab4aba6d
|
@ -37,8 +37,13 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
var metadataList = new List<IFunctionMetadata>();
|
||||
|
@ -47,6 +52,9 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||
/// </summary>
|
||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||
{
|
||||
///<summary>
|
||||
|
@ -72,8 +80,16 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators
|
|||
{
|
||||
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
|
||||
{
|
||||
/// <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)
|
||||
{
|
||||
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
||||
|
|
|
@ -74,8 +74,13 @@ using Microsoft.Extensions.Hosting;
|
|||
|
||||
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
|
||||
{{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{{
|
||||
var metadataList = new List<IFunctionMetadata>();
|
||||
|
@ -116,6 +121,9 @@ namespace TestProject
|
|||
if (includeAutoStartupType)
|
||||
{
|
||||
return """
|
||||
/// <summary>
|
||||
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||
/// </summary>
|
||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||
{
|
||||
///<summary>
|
||||
|
@ -131,8 +139,16 @@ namespace TestProject
|
|||
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
|
||||
{
|
||||
/// <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)
|
||||
{
|
||||
hostBuilder.ConfigureGeneratedFunctionMetadataProvider();
|
||||
|
@ -142,6 +158,9 @@ namespace TestProject
|
|||
}
|
||||
|
||||
return """
|
||||
/// <summary>
|
||||
/// Extension methods to enable registration of the custom <see cref="IFunctionMetadataProvider"/> implementation generated for the current worker.
|
||||
/// </summary>
|
||||
public static class WorkerHostBuilderFunctionMetadataProviderExtension
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -74,8 +74,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -94,8 +94,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -219,8 +227,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -450,8 +474,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -599,8 +631,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -711,8 +751,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -73,8 +73,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -159,8 +167,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -249,8 +265,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -95,8 +95,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -209,8 +217,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -398,8 +422,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -484,8 +516,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -580,8 +620,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -78,8 +78,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -165,8 +173,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -79,8 +79,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
var metadataList = new List<IFunctionMetadata>();
|
||||
|
@ -106,6 +111,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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -169,8 +177,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
var metadataList = new List<IFunctionMetadata>();
|
||||
|
@ -197,6 +210,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
|
||||
{
|
||||
///<summary>
|
||||
|
|
|
@ -82,8 +82,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
@ -188,8 +196,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests
|
|||
|
||||
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
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public Task<ImmutableArray<IFunctionMetadata>> GetFunctionMetadataAsync(string directory)
|
||||
{
|
||||
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
|
||||
{
|
||||
///<summary>
|
||||
|
|
Загрузка…
Ссылка в новой задаче