void ReleaseAllChannels(RSocketProtocol.ErrorCodes errorCode, string errorText) { var errorData = Helpers.StringToByteSequence(errorText); lock (this) { foreach (var kv in this._activeChannels) { var channel = kv.Value; int channelId = channel.ChannelId; try { channel.HandleError(new RSocketProtocol.Error(errorCode, channelId, errorData, errorText)); this.RemoveChannel(channelId); channel.Dispose(); } catch { } } } }
protected RSocketException(SerializationInfo info, StreamingContext context, RSocketProtocol.ErrorCodes error) : base(info, context) { Error = error; }
public RSocketException(string message, Exception innerException, RSocketProtocol.ErrorCodes error) : base(message, innerException) { Error = error; }
public RSocketException(RSocketProtocol.ErrorCodes error) { Error = error; }