/// <summary> /// Initializes a new instance of the <see cref="ChannelServiceController"/> class. /// </summary> /// <param name="handler">A <see cref="ChannelServiceHandler"/> that will handle the incoming request.</param> public ChannelServiceController(ChannelServiceHandler handler) { _handler = handler; }
/// <summary> /// Initializes a new instance of the <see cref="ChannelServiceController"/> class. /// </summary> /// <param name="handler">A <see cref="ChannelServiceHandler"/> that will handle the incoming request.</param> protected ChannelServiceController(ChannelServiceHandler handler) { _handler = handler; }
/// <summary> /// Initializes a new instance of the <see cref="ChannelServiceController"/> class, /// using a credential provider. /// </summary> /// <param name="handler">A <see cref="ChannelServiceHandler"/> that will handle the incoming request.</param> /// <exception cref="ArgumentNullException">throw ArgumentNullException.</exception> /// <remarks>Use a <see cref="MiddlewareSet"/> object to add multiple middleware /// components in the constructor. Use the Use(<see cref="IMiddleware"/>) method to /// add additional middleware to the adapter after construction. /// </remarks> public ChannelServiceController(ChannelServiceHandler handler) { _handler = handler ?? throw new ArgumentNullException(nameof(handler)); }