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