示例#1
0
 public EventLogger(EventLoggerConfiguration configuration, IRuntimeSettings runtimeSettings)
 {
     if (configuration == null)
     {
         throw new ArgumentNullException("configuration");
     }
     if (runtimeSettings == null)
     {
         throw new ArgumentNullException("runtimeSettings");
     }
     this._sourceName = configuration.SourceName ?? EventLogger.IntegrationService(runtimeSettings);
 }
示例#2
0
        public EventLogger(EventLoggerConfiguration configuration, IRuntimeSettings runtimeSettings)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }
            if (runtimeSettings == null)
            {
                throw new ArgumentNullException(nameof(runtimeSettings));
            }

            _sourceName = configuration.SourceName ?? IntegrationService(runtimeSettings);
        }