internal static void Handle(string msg, Subject <ErrorResponse> subject)
        {
            var error = BitfinexSerialization.Deserialize <ErrorResponse>(msg);

            Log.Error(L($"Error received - message: {error.Msg}, code: {error.Code}"));
            subject.OnNext(error);
        }
        internal static void Handle(string msg, Subject <AuthenticationResponse> subject)
        {
            var response = BitfinexSerialization.Deserialize <AuthenticationResponse>(msg);

            ;           if (!response.IsAuthenticated)
            {
                Log.Warn(L("Authentication failed. Code: " + response.Code));
            }
            subject.OnNext(response);
        }
        internal static void Handle(string msg, Subject <UnsubscribedResponse> subject)
        {
            var response = BitfinexSerialization.Deserialize <UnsubscribedResponse>(msg);

            subject.OnNext(response);
        }
Ejemplo n.º 4
0
        internal static void Handle(string msg, Subject <InfoResponse> subject)
        {
            var info = BitfinexSerialization.Deserialize <InfoResponse>(msg);

            subject.OnNext(info);
        }
Ejemplo n.º 5
0
        internal static void Handle(string msg, Subject <PongResponse> subject)
        {
            var pong = BitfinexSerialization.Deserialize <PongResponse>(msg);

            subject.OnNext(pong);
        }