Exemplo n.º 1
0
 public AppSettings(IConfiguration configuration)
 {
     CallEvents = new CallEventsConfiguration(
         voice: configuration.GetSection("CallEvents:Voice").Value,
         responseBegin: configuration.GetSection("CallEvents:ResponseBegin").Value,
         responseEnd: configuration.GetSection("CallEvents:ResponseEnd").Value,
         initConfiguration: new InitConfiguration(
             goodMorning: configuration.GetSection("CallEvents:Init:GoodMorning").Value,
             goodAfternoon: configuration.GetSection("CallEvents:Init:GoodAfternoon").Value,
             goodEvening: configuration.GetSection("CallEvents:Init:GoodEvening").Value),
         introductionConfiguration: new IntroductionConfiguration(
             hello: configuration.GetSection("CallEvents:Introduction:Hello").Value));
 }
Exemplo n.º 2
0
 public AppSettingsConfiguration(CallEventsConfiguration callEventsConfiguration)
 {
     CallEvents = callEventsConfiguration;
 }