public ForwarderConfiguration(ForwarderSourceConfiguration source, ForwarderDestinationConfiguration destination)
        {
            Guard.IsNotNull(source, nameof(source));
            Guard.IsNotNull(destination, nameof(destination));

            this.Source      = source;
            this.Destination = destination;
        }
Example #2
0
        public Forwarder(ForwarderConfiguration configuration)
        {
            Guard.IsNotNull(configuration, nameof(configuration));

            this.sourceConfiguration      = configuration.Source;
            this.destinationConfiguration = configuration.Destination;
            this.logger        = configuration.Logger;
            this.concurrency   = configuration.Concurrency;
            this.metricHandler = configuration.MetricHander;
        }