/// <summary> /// Adds a notification module to the channel. /// </summary> /// <param name="module">The module.</param> /// <returns></returns> public IClientChannelBuilder AddNotificationModule(IChannelModule <Notification> module) { if (module == null) { throw new ArgumentNullException(nameof(module)); } return(AddNotificationModule(c => module)); }
/// <summary> /// Adds a command module to the channel. /// </summary> /// <param name="module">The module.</param> /// <returns></returns> public IClientChannelBuilder AddCommandModule(IChannelModule <Command> module) { if (module == null) { throw new ArgumentNullException(nameof(module)); } return(AddCommandModule(c => module)); }
/// <summary> /// Adds a message module to the channel. /// </summary> /// <param name="module">The module.</param> /// <returns></returns> public ClientChannelBuilder AddMessageModule(IChannelModule <Message> module) { if (module == null) { throw new ArgumentNullException(nameof(module)); } return(AddMessageModule(c => module)); }