public override void Configure(IFunctionsHostBuilder builder) { var config = new ClovaConfiguration { DefaultLang = Lang.En }; builder.Services .AddSingleton(config) .AddClova <ILoggableClova, MySimpleClova>() // Simple .AddClova <IDurableClova, MyDurableClova>(); // Durable Functions }
public MyDurableClova(ClovaConfiguration config) { SetDefaultLang(config.DefaultLang); }