public ChannelOptions(ISerializer serializer, SolarWindCallback callback)
 {
     Serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
     Callback   = callback ?? throw new ArgumentNullException(nameof(callback));
 }
Beispiel #2
0
 /// <summary>
 /// Sets callback for the channel. Previous callback will be replaced with the supplied one.
 /// </summary>
 /// <param name="callback"></param>
 public void SetCallback(SolarWindCallback callback)
 => _callback = callback ?? throw new ArgumentNullException(nameof(callback));