public ChannelOptions(ISerializer serializer, SolarWindCallback callback) { Serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); Callback = callback ?? throw new ArgumentNullException(nameof(callback)); }
/// <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));