Exemplo n.º 1
0
        public void LogOutAsync(Action <TLBool> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLLogOut();

            const string methodName = "auth.logOut";

            Logs.Log.Write(methodName);
            SendInformativeMessage <TLBool>(methodName, obj,
                                            result =>
            {
                Logs.Log.Write(string.Format("{0} result={1}", methodName, result));
                callback.SafeInvoke(result);
            },
                                            error =>
            {
                Logs.Log.Write(string.Format("{0} error={1}", methodName, error));
                faultCallback.SafeInvoke(error);
            });
        }
        public void LogOutAsync(Action <TLBool> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLLogOut();

            SendInformativeMessage <TLBool>("auth.logOut", obj, callback.SafeInvoke, faultCallback);
        }