Esempio n. 1
0
        public void PropertiesCorrespondToExceptionConstructor()
        {
            const ConnectionState cs = ConnectionState.Closed;
            var e = new AblyException("Something wicked this way comes");

            var o = new AttemptFailedState(cs, e);

            o.Error.Should().BeNull();
            o.Exception.Should().Be(e);
            o.State.Should().Be(cs);
        }
Esempio n. 2
0
 public static HandleConnectingErrorCommand Create(ErrorInfo error = null, AblyException ex = null, bool clearConnectionKey = false) =>
 new HandleConnectingErrorCommand(error, ex, clearConnectionKey);
Esempio n. 3
0
 private HandleConnectingErrorCommand(ErrorInfo error, AblyException ex, bool clearConnectionKey)
 {
     Error              = error;
     Exception          = ex;
     ClearConnectionKey = clearConnectionKey;
 }
Esempio n. 4
0
 public static HandleAblyAuthorizeErrorCommand Create(AblyException ex = null) =>
 new HandleAblyAuthorizeErrorCommand(ex);
Esempio n. 5
0
 private HandleAblyAuthorizeErrorCommand(AblyException ex)
 {
     Exception = ex;
 }