Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure App Configuration in Configuration. #174

Open
umashankarsharma opened this issue May 3, 2021 · 0 comments
Open

Azure App Configuration in Configuration. #174

umashankarsharma opened this issue May 3, 2021 · 0 comments

Comments

@umashankarsharma
Copy link

Is there any possibility to access the Azure App configuration. Below is how my code looks like.
Here is the link: https://docs.microsoft.com/en-us/azure/azure-app-configuration/quickstart-azure-functions-csharp

public class Configuration : FunctionMonkey.Abstractions.IFunctionAppConfiguration
{
    public void Build(IFunctionHostBuilder builder)
    {
        var conf = new ConfigurationBuilder().Build();
        builder.Setup((serviceCollection, commandRegistry) =>
            {
                serviceCollection.AddLogging();
                commandRegistry.Discover<Configuration>();
                serviceCollection.AddTransient<ISender, DocumentService>();
            }).Authorization(authorization => authorization.AuthorizationDefault(AuthorizationTypeEnum.Anonymous)
             ).Functions(functions => functions .HttpRoute("Upload", route => route.HttpFunction<UploadDocumentQuery>("/{env}",HttpMethod.Post)
                )
            );
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant