NServiceBus.StaticHeaders.Setup C# (CSharp) Method

Setup() protected method

protected Setup ( FeatureConfigurationContext context ) : void
context FeatureConfigurationContext
return void
        protected internal override void Setup(FeatureConfigurationContext context)
        {
            var headers = context.Settings.Get<CurrentStaticHeaders>();
            context.Pipeline.Register("ApplyStaticHeaders", new ApplyStaticHeadersBehavior(headers), "Applies static headers to outgoing messages");
        }
    }