本文整理汇总了C#中TekTak.iLoop.Kauwa.Session类的典型用法代码示例。如果您正苦于以下问题:C# Session类的具体用法?C# Session怎么用?C# Session使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Session类属于TekTak.iLoop.Kauwa命名空间,在下文中一共展示了Session类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: sync
public string sync(string snapshot, Session session)
{
#if !SILVERLIGHT
send_sync(snapshot, session);
return recv_sync();
#else
var asyncResult = Begin_sync(null, null, snapshot, session);
return End_sync(asyncResult);
#endif
}
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:12,代码来源:ChatService.cs
示例17: tinyInstancePush
public string tinyInstancePush(ChatInstancePullInfo instance, Session session)
{
#if !SILVERLIGHT
send_tinyInstancePush(instance, session);
return recv_tinyInstancePush();
#else
var asyncResult = Begin_tinyInstancePush(null, null, instance, session);
return End_tinyInstancePush(asyncResult);
#endif
}
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:12,代码来源:ChatService.cs
示例18: send_tinyInstancePush
public IAsyncResult send_tinyInstancePush(AsyncCallback callback, object state, ChatInstancePullInfo instance, Session session)
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:1,代码来源:ChatService.cs
示例19: Begin_deleteInboxRules
public IAsyncResult Begin_deleteInboxRules(AsyncCallback callback, object state, Inbox inbox, Session session)
{
return send_deleteInboxRules(callback, state, inbox, session);
}
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:4,代码来源:InboxRuleService.cs
示例20: Begin_tinyGroupPush
public IAsyncResult Begin_tinyGroupPush(AsyncCallback callback, object state, GroupPull groupPull, Session session)
{
return send_tinyGroupPush(callback, state, groupPull, session);
}
开发者ID:tektak-abhisheksth,项目名称:Web-API,代码行数:4,代码来源:ChatService.cs
注:本文中的TekTak.iLoop.Kauwa.Session类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论