Пример #1
0
 public WorkloadSettings GetWorkloadSettings()
 {
     ExchangeRunspaceConfigurationSettings.ExchangeApplication exchangeApplication = ExchangeRunspaceConfigurationSettings.ExchangeApplication.Unknown;
     if (this.context.SessionState != null)
     {
         exchangeApplication = ExchangePropertyContainer.GetPropagatedClientAppId(this.context.SessionState);
     }
     if (exchangeApplication == ExchangeRunspaceConfigurationSettings.ExchangeApplication.Unknown && this.context.ExchangeRunspaceConfig != null)
     {
         exchangeApplication = this.context.ExchangeRunspaceConfig.ConfigurationSettings.ClientApplication;
     }
     return(this.GetWorkloadSettings(exchangeApplication));
 }