public KasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback) { Debug.Assert(cmd.ID != 0); Cmd = cmd; MetaData = metaData; Callback = callback; }
/// <summary> /// Post a command to the KAS of the workspace. A query object having /// the meta-data specified is returned. The query object will be /// re-supplied when the reply to the command is received. The reply of /// the command will be ignored if the workspace logs out for any /// reason. /// </summary> public KasQuery PostKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback) { return Helper.PostAppKasQuery(cmd, metaData, callback, this); }
/// <summary> /// Post a command to the KAS of the workspace. A query object having /// the meta-data specified is returned. The query object will be /// re-supplied when the reply to the command is received. The reply of /// the command will be ignored if the workspace logs out for any /// reason. /// </summary> public KasQuery PostKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback) { return(Helper.PostAppKasQuery(cmd, metaData, callback, this)); }
/// <summary> /// Process the invitations on the KAS. /// </summary> public void PerformKasInvite(KasQueryDelegate callback) { // Send an invitation command to the KAS. Op.m_opStep = KwmCoreKwsOpStep.KasInvite; AnpMsg msg = Op.m_kws.NewKAnpCmd(KAnpType.KANP_CMD_KWS_INVITE_KWS); msg.AddString(InviteParams.Message); msg.AddUInt32((UInt32)InviteParams.UserArray.Count); foreach (KwsInviteOpUser u in InviteParams.UserArray) { msg.AddString(u.UserName); msg.AddString(u.EmailAddress); msg.AddUInt64(u.KeyID); msg.AddString(u.OrgName); msg.AddString(u.Pwd); msg.AddUInt32(InviteParams.KcdSendInvitationEmailFlag ? (UInt32)1 : 0); } Op.m_kws.PostNonAppKasQuery(msg, null, callback, true); }
/// <summary> /// Helper for PostNonAppKasQuery() and PostKasQuery(). /// </summary> private WmKasQuery PostKasQueryInternal(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback, KwsApp app, bool clearOnLogoutFlag) { WmKasQuery query = new WmKasQuery(cmd, metaData, callback, Kas, this, app, clearOnLogoutFlag); m_wm.Sm.PostKasQuery(query); return query; }
/// <summary> /// Post a non-application related KAS query. /// </summary> public WmKasQuery PostNonAppKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback, bool clearOnLogoutFlag) { return PostKasQueryInternal(cmd, metaData, callback, null, clearOnLogoutFlag); }
public KasQuery PostAppKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback, KwsApp app) { Debug.Assert(app != null); return PostKasQueryInternal(cmd, metaData, callback, app, true); }
public WmKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback, WmKas kas, Workspace kws, KwsApp app, bool clearOnLogoutFlag) : base(cmd, metaData, callback) { Kas = kas; Kws = kws; App = app; ClearOnLogoutFlag = clearOnLogoutFlag; }