Beispiel #1
0
        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
        }
Beispiel #2
0
 public MyDurableClova(ClovaConfiguration config)
 {
     SetDefaultLang(config.DefaultLang);
 }