NServiceBus.SubscribeContext.SubscribeContext C# (CSharp) Method

SubscribeContext() public method

public SubscribeContext ( IBehaviorContext parentContext, Type eventType, SubscribeOptions options ) : System
parentContext IBehaviorContext
eventType System.Type
options SubscribeOptions
return System
        public SubscribeContext(IBehaviorContext parentContext, Type eventType, SubscribeOptions options)
            : base(parentContext)
        {
            Guard.AgainstNull(nameof(parentContext), parentContext);
            Guard.AgainstNull(nameof(eventType), eventType);
            Guard.AgainstNull(nameof(options), options);

            parentContext.Extensions.Merge(options.Context);

            EventType = eventType;
        }
SubscribeContext