Ejemplo n.º 1
0
        public void Create()
        {
            var configuration = new VolatileLogConfiguration();
            var settings      = new VolatileProcessingPipelineStageConfiguration("Stage", configuration);

            Assert.Same(configuration.Sync, settings.Sync);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VolatileProcessingPipelineStageConfigurations"/> class.
 /// </summary>
 /// <param name="configuration">The log configuration the processing pipeline configuration belongs to.</param>
 internal VolatileProcessingPipelineStageConfigurations(VolatileLogConfiguration configuration)
 {
     mLogConfiguration = configuration;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VolatileProcessingPipelineStageConfiguration"/> class (for internal use only).
 /// </summary>
 /// <param name="name">Name of the pipeline stage the configuration belongs to.</param>
 /// <param name="configuration">The configuration the stage configuration belongs to.</param>
 internal VolatileProcessingPipelineStageConfiguration(string name, VolatileLogConfiguration configuration) : base(configuration?.Sync)
 {
     Name             = name ?? throw new ArgumentNullException(nameof(name));
     LogConfiguration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }