當前位置: 首頁>>代碼示例>>C#>>正文


C# Kauwa.Session類代碼示例

本文整理匯總了C#中TekTak.iLoop.Kauwa.Session的典型用法代碼示例。如果您正苦於以下問題:C# Session類的具體用法?C# Session怎麽用?C# Session使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Session類屬於TekTak.iLoop.Kauwa命名空間,在下文中一共展示了Session類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: SignOut

        //public StatusData<GeneralKvPair<string, string>> SignOut(SystemSession sessionObject, SignOut request)
        //{
        //    var result = new StatusData<GeneralKvPair<string, string>>
        //    {
        //        Status = SystemDbStatus.Deleted,
        //        Data = new GeneralKvPair<string, string>()
        //    };
        //    var session = new Session { SessionToken = request.Token, DeviceId = request.DeviceId, UserId = request.UserName, Replay = true };
        //    //var user = new User { Session = new Session { UserId = request.UserId.ToString(), SessionToken = request.LoginToken, DeviceId = request.DeviceId, Replay = true }, UsernameEmail = request.UserName };
        //    //var aa = _client.Service.Kill(user);
        //    _client.SessionService.killSession(session);
        //    result.Data.Id = request.DeviceId;
        //    result.Data.Value = request.Token;

        //    return result;
        //}

        public async Task<StatusData<bool>> SignOut(SystemSession sessionObject, SignOut request)
        {
            var result = new StatusData<bool>
            {
                Status = SystemDbStatus.Deleted
            };
            var session = new Session { SessionToken = request.Token, DeviceId = request.DeviceId, UserId = request.UserName, Replay = true };
            result.Data = await Task.Factory.StartNew(() => Client.SessionService.killSession(session)).ConfigureAwait(false);
            return result;
        }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:27,代碼來源:SettingRepository.cs

示例2: Begin_gearUpVer2

 public IAsyncResult Begin_gearUpVer2(AsyncCallback callback, object state, GearUp gearUp, Session session)
 {
   return send_gearUpVer2(callback, state, gearUp, session);
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:4,代碼來源:ChatService.cs

示例3: send_getRules

 public void send_getRules(int userId, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getRules", TMessageType.Call, seqid_));
   getRules_args args = new getRules_args();
   args.UserId = userId;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:15,代碼來源:InboxRuleService.cs

示例4: getRules

      public List<InboxRule> getRules(int userId, Session session)
      {
        #if !SILVERLIGHT
        send_getRules(userId, session);
        return recv_getRules();

        #else
        var asyncResult = Begin_getRules(null, null, userId, session);
        return End_getRules(asyncResult);

        #endif
      }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:12,代碼來源:InboxRuleService.cs

示例5: send_deleteInboxRules

 public void send_deleteInboxRules(Inbox inbox, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("deleteInboxRules", TMessageType.Call, seqid_));
   deleteInboxRules_args args = new deleteInboxRules_args();
   args.Inbox = inbox;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:15,代碼來源:InboxRuleService.cs

示例6: deleteInboxRules

      /// <summary>
      /// Method to delete existing inbox rules with following parameters:
      /// @param Inbox messageFolder
      /// 1. int userId
      /// 2. int folderId
      /// @param InboxRule messageRule
      /// 1. int messageRuleId
      /// @param Session sessionObj
      /// @return int code
      /// @throws InboxException
      /// @throws SessionException
      /// </summary>
      /// <param name="inbox"></param>
      /// <param name="session"></param>
      public DbStatus deleteInboxRules(Inbox inbox, Session session)
      {
        #if !SILVERLIGHT
        send_deleteInboxRules(inbox, session);
        return recv_deleteInboxRules();

        #else
        var asyncResult = Begin_deleteInboxRules(null, null, inbox, session);
        return End_deleteInboxRules(asyncResult);

        #endif
      }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:26,代碼來源:InboxRuleService.cs

示例7: createInboxRules

      /// <summary>
      /// Method to create Inbox Rules that takes following paramaters with their respective field set:
      /// @param Inbox messageFolder
      /// 1. int userId
      /// 2. int folderId
      /// @param InboxRule messageRule
      /// 1. int ruleUserSelection,
      /// 2. int ruleTypeUser,
      /// 3. int ruleTypeSubject,
      /// 4. String subject,
      /// 5. String[] contactList,
      /// 6. String[] groupList
      /// @param Session sessionObj
      /// @return int code
      /// @throws InboxException
      /// @throws SessionException
      /// </summary>
      /// <param name="inbox"></param>
      /// <param name="session"></param>
      public Inbox createInboxRules(Inbox inbox, Session session)
      {
        #if !SILVERLIGHT
        send_createInboxRules(inbox, session);
        return recv_createInboxRules();

        #else
        var asyncResult = Begin_createInboxRules(null, null, inbox, session);
        return End_createInboxRules(asyncResult);

        #endif
      }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:31,代碼來源:InboxRuleService.cs

示例8: send_sync

 public IAsyncResult send_sync(AsyncCallback callback, object state, string snapshot, Session session)
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:1,代碼來源:ChatService.cs

示例9: Begin_tinyInstancePush

 public IAsyncResult Begin_tinyInstancePush(AsyncCallback callback, object state, ChatInstancePullInfo instance, Session session)
 {
   return send_tinyInstancePush(callback, state, instance, session);
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:4,代碼來源:ChatService.cs

示例10: send_tinyMsgPush

 public IAsyncResult send_tinyMsgPush(AsyncCallback callback, object state, ChatMessagePull msg, Session session)
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:1,代碼來源:ChatService.cs

示例11: tinyMsgPush

      public string tinyMsgPush(ChatMessagePull msg, Session session)
      {
        #if !SILVERLIGHT
        send_tinyMsgPush(msg, session);
        return recv_tinyMsgPush();

        #else
        var asyncResult = Begin_tinyMsgPush(null, null, msg, session);
        return End_tinyMsgPush(asyncResult);

        #endif
      }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:12,代碼來源:ChatService.cs

示例12: Begin_tinyMsgPush

 public IAsyncResult Begin_tinyMsgPush(AsyncCallback callback, object state, ChatMessagePull msg, Session session)
 {
   return send_tinyMsgPush(callback, state, msg, session);
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:4,代碼來源:ChatService.cs

示例13: send_gearUpVer2

 public void send_gearUpVer2(GearUp gearUp, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("gearUpVer2", TMessageType.Call, seqid_));
   gearUpVer2_args args = new gearUpVer2_args();
   args.GearUp = gearUp;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:15,代碼來源:ChatService.cs

示例14: gearUpVer2

      public string gearUpVer2(GearUp gearUp, Session session)
      {
        #if !SILVERLIGHT
        send_gearUpVer2(gearUp, session);
        return recv_gearUpVer2();

        #else
        var asyncResult = Begin_gearUpVer2(null, null, gearUp, session);
        return End_gearUpVer2(asyncResult);

        #endif
      }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:12,代碼來源:ChatService.cs

示例15: Begin_sync

 public IAsyncResult Begin_sync(AsyncCallback callback, object state, string snapshot, Session session)
 {
   return send_sync(callback, state, snapshot, session);
 }
開發者ID:tektak-abhisheksth,項目名稱:Web-API,代碼行數:4,代碼來源:ChatService.cs


注:本文中的TekTak.iLoop.Kauwa.Session類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。