NServiceBus.OutgoingPublishContext.OutgoingPublishContext C# (CSharp) Method

OutgoingPublishContext() public method

public OutgoingPublishContext ( OutgoingLogicalMessage message, PublishOptions options, IBehaviorContext parentContext ) : System.Collections.Generic
message OutgoingLogicalMessage
options PublishOptions
parentContext IBehaviorContext
return System.Collections.Generic
        public OutgoingPublishContext(OutgoingLogicalMessage message, PublishOptions options, IBehaviorContext parentContext)
            : base(options.MessageId, new Dictionary<string, string>(options.OutgoingHeaders), parentContext)
        {
            Message = message;
            Guard.AgainstNull(nameof(parentContext), parentContext);
            Guard.AgainstNull(nameof(message), message);
            Guard.AgainstNull(nameof(options), options);

            parentContext.Extensions.Merge(options.Context);
        }
OutgoingPublishContext