Skip to content

Instantly share code, notes, and snippets.

Created May 14, 2019 20:03
What would you like to do?
[assembly: FunctionsStartup(typeof(MyNamespace.Startup))]
namespace MyNamespace
public class Startup : FunctionsStartup
public override void Configure(IFunctionsHostBuilder builder)
builder.Services.AddSingleton((s) => {
return new CosmosClient(Environment.GetEnvironmentVariable("COSMOSDB_CONNECTIONSTRING"));
builder.Services.AddSingleton<ILoggerProvider, MyLoggerProvider>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment