Ejemplo n.º 1
0
        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
                    {
                    }
                }
            }
        }
Ejemplo n.º 2
0
 protected RSocketException(SerializationInfo info, StreamingContext context, RSocketProtocol.ErrorCodes error) : base(info, context)
 {
     Error = error;
 }
Ejemplo n.º 3
0
 public RSocketException(string message, Exception innerException, RSocketProtocol.ErrorCodes error) : base(message, innerException)
 {
     Error = error;
 }
Ejemplo n.º 4
0
 public RSocketException(RSocketProtocol.ErrorCodes error)
 {
     Error = error;
 }