public FileChannelServer Subscribe(string action, IFileChannelHandler handler) { if (string.IsNullOrEmpty(action)) { throw new ArgumentNullException(nameof(action)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } _handlers[action] = handler; return this; }
public FileChannelServer Subscribe(string action, IFileChannelHandler handler) { if (string.IsNullOrEmpty(action)) { throw new ArgumentNullException(nameof(action)); } if (handler == null) { throw new ArgumentNullException(nameof(handler)); } _handlers[action] = handler; return(this); }