예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }