コード例 #1
0
 /// <summary>
 /// Clone this into a new instance of the <see cref="GatewayProcessorConfig"/> class, optionally replacing some properties.
 /// </summary>
 /// <param name="serviceSettings">Optional new service settings.</param>
 /// <param name="processorSettings">Optional new processor settings.</param>
 /// <param name="dequeueServiceConfig">Optional new dequeue service config.</param>
 /// <param name="downloadServiceConfig">Optional new download service config.</param>
 /// <param name="configurationServiceConfig">Optional new configuration service config.</param>
 /// <returns>New GatewayProcessorConfig.</returns>
 public GatewayProcessorConfig With(
     ServiceSettings serviceSettings                       = null,
     ProcessorSettings processorSettings                   = null,
     DequeueServiceConfig dequeueServiceConfig             = null,
     DownloadServiceConfig downloadServiceConfig           = null,
     ConfigurationServiceConfig configurationServiceConfig = null) =>
 new GatewayProcessorConfig(
     serviceSettings ?? ServiceSettings,
     processorSettings ?? ProcessorSettings,
     dequeueServiceConfig ?? DequeueServiceConfig,
     downloadServiceConfig ?? DownloadServiceConfig,
     configurationServiceConfig ?? ConfigurationServiceConfig);
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatewayProcessorConfig"/> class.
 /// </summary>
 /// <param name="serviceSettings">Service settings.</param>
 /// <param name="processorSettings">Processor settings.</param>
 /// <param name="dequeueServiceConfig">Dequeue service config.</param>
 /// <param name="downloadServiceConfig">Download service config.</param>
 /// <param name="configurationServiceConfig">Configuration service config.</param>
 public GatewayProcessorConfig(
     ServiceSettings serviceSettings,
     ProcessorSettings processorSettings,
     DequeueServiceConfig dequeueServiceConfig,
     DownloadServiceConfig downloadServiceConfig,
     ConfigurationServiceConfig configurationServiceConfig)
 {
     ServiceSettings            = serviceSettings;
     ProcessorSettings          = processorSettings;
     DequeueServiceConfig       = dequeueServiceConfig;
     DownloadServiceConfig      = downloadServiceConfig;
     ConfigurationServiceConfig = configurationServiceConfig;
 }