コード例 #1
0
 public ChannelOptions(ISerializer serializer, SolarWindCallback callback)
 {
     Serializer = serializer ?? throw new ArgumentNullException(nameof(serializer));
     Callback   = callback ?? throw new ArgumentNullException(nameof(callback));
 }
コード例 #2
0
ファイル: Channel.cs プロジェクト: Codestellation/SolarWind
 /// <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));