From 0dab4aba6d47b356203f1d5061f62e5b326620dc Mon Sep 17 00:00:00 2001 From: Fabio Cavalcante Date: Tue, 7 Nov 2023 16:00:51 -0800 Subject: [PATCH] Updating generated metadata provider to ensure public types and members are documented --- ...nctionMetadataProviderGenerator.Emitter.cs | 20 +++++++- .../AutoConfigureStartupTypeTests.cs | 19 ++++++++ .../DependentAssemblyTest.cs | 8 ++++ .../EventHubsBindingsTests.cs | 48 +++++++++++++++++++ .../HttpTriggerTests.cs | 24 ++++++++++ .../IntegratedTriggersAndBindingsTests.cs | 48 +++++++++++++++++++ .../NestedTypesTest.cs | 16 +++++++ .../RetryOptionsTests.cs | 20 +++++++- .../StorageBindingTests.cs | 16 +++++++ 9 files changed, 215 insertions(+), 4 deletions(-) diff --git a/sdk/Sdk.Generators/FunctionMetadataProviderGenerator/FunctionMetadataProviderGenerator.Emitter.cs b/sdk/Sdk.Generators/FunctionMetadataProviderGenerator/FunctionMetadataProviderGenerator.Emitter.cs index 63016583..f32202f7 100644 --- a/sdk/Sdk.Generators/FunctionMetadataProviderGenerator/FunctionMetadataProviderGenerator.Emitter.cs +++ b/sdk/Sdk.Generators/FunctionMetadataProviderGenerator/FunctionMetadataProviderGenerator.Emitter.cs @@ -34,11 +34,16 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators using Microsoft.Azure.Functions.Worker.Core.FunctionMetadata; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; - + namespace {{FunctionsUtil.GetNamespaceForGeneratedCode(context)}} { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -46,7 +51,10 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators return Task.FromResult(metadataList.ToImmutableArray()); } } - + + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -72,8 +80,16 @@ namespace Microsoft.Azure.Functions.Worker.Sdk.Generators { string result = $$""" + /// + /// Auto startup class to register the custom implementation generated for the current worker. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup { + /// + /// Configures the to use the custom implementation generated for the current worker. + /// + /// The instance to use for service registration. public void Configure(IHostBuilder hostBuilder) { hostBuilder.ConfigureGeneratedFunctionMetadataProvider(); diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/AutoConfigureStartupTypeTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/AutoConfigureStartupTypeTests.cs index 2dc7a4d4..1a7b7906 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/AutoConfigureStartupTypeTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/AutoConfigureStartupTypeTests.cs @@ -74,8 +74,13 @@ using Microsoft.Extensions.Hosting; namespace TestProject {{ + /// + /// Custom implementation that returns function metadata definitions for the current worker.""/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider {{ + /// public Task> GetFunctionMetadataAsync(string directory) {{ var metadataList = new List(); @@ -116,6 +121,9 @@ namespace TestProject if (includeAutoStartupType) { return """ + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -131,8 +139,16 @@ namespace TestProject return builder; } } + /// + /// Auto startup class to register the custom implementation generated for the current worker. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class FunctionMetadataProviderAutoStartup : IAutoConfigureStartup { + /// + /// Configures the to use the custom implementation generated for the current worker. + /// + /// The instance to use for service registration. public void Configure(IHostBuilder hostBuilder) { hostBuilder.ConfigureGeneratedFunctionMetadataProvider(); @@ -142,6 +158,9 @@ namespace TestProject } return """ + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/DependentAssemblyTest.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/DependentAssemblyTest.cs index c1371edb..747c48cc 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/DependentAssemblyTest.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/DependentAssemblyTest.cs @@ -74,8 +74,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -136,6 +141,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/EventHubsBindingsTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/EventHubsBindingsTests.cs index e74683d6..8706ce7e 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/EventHubsBindingsTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/EventHubsBindingsTests.cs @@ -94,8 +94,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -120,6 +125,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -219,8 +227,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -245,6 +258,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -333,6 +354,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -450,8 +474,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -508,6 +537,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -599,8 +631,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -633,6 +670,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -711,8 +751,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -745,6 +790,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs index 59f7d4a5..67ad7fad 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/HttpTriggerTests.cs @@ -73,8 +73,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -96,6 +101,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -159,8 +167,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -181,6 +194,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -249,8 +265,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace MyCompany.MyProject.MyApp { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -272,6 +293,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs index 5c8d8e09..755c40cd 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/IntegratedTriggersAndBindingsTests.cs @@ -95,8 +95,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -119,6 +124,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -209,8 +217,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -234,6 +247,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -311,8 +327,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -334,6 +355,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -398,8 +422,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -420,6 +449,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -484,8 +516,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -507,6 +544,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -580,8 +620,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -629,6 +674,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/NestedTypesTest.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/NestedTypesTest.cs index 03deac24..c89060ad 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/NestedTypesTest.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/NestedTypesTest.cs @@ -78,8 +78,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -101,6 +106,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -165,8 +173,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -188,6 +201,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/RetryOptionsTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/RetryOptionsTests.cs index 0d8575df..f130d6de 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/RetryOptionsTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/RetryOptionsTests.cs @@ -79,8 +79,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -105,7 +110,10 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests return Task.FromResult(metadataList.ToImmutableArray()); } } - + + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -169,8 +177,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -196,7 +209,10 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests return Task.FromResult(metadataList.ToImmutableArray()); } } - + + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// diff --git a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/StorageBindingTests.cs b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/StorageBindingTests.cs index f4b129df..378813a8 100644 --- a/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/StorageBindingTests.cs +++ b/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests/StorageBindingTests.cs @@ -82,8 +82,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -105,6 +110,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { /// @@ -188,8 +196,13 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests namespace TestProject { + /// + /// Custom implementation that returns function metadata definitions for the current worker."/> + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)] public class GeneratedFunctionMetadataProvider : IFunctionMetadataProvider { + /// public Task> GetFunctionMetadataAsync(string directory) { var metadataList = new List(); @@ -237,6 +250,9 @@ namespace Microsoft.Azure.Functions.SdkGeneratorTests } } + /// + /// Extension methods to enable registration of the custom implementation generated for the current worker. + /// public static class WorkerHostBuilderFunctionMetadataProviderExtension { ///