Beispiel #1
0
 public KasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback)
 {
     Debug.Assert(cmd.ID != 0);
     Cmd      = cmd;
     MetaData = metaData;
     Callback = callback;
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 public KasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback)
 {
     Debug.Assert(cmd.ID != 0);
     Cmd = cmd;
     MetaData = metaData;
     Callback = callback;
 }
Beispiel #4
0
 /// <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));
 }
Beispiel #5
0
        /// <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);
        }
Beispiel #6
0
 /// <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;
 }
Beispiel #7
0
 /// <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);
 }
Beispiel #8
0
 public KasQuery PostAppKasQuery(AnpMsg cmd, Object[] metaData, KasQueryDelegate callback, KwsApp app)
 {
     Debug.Assert(app != null);
     return PostKasQueryInternal(cmd, metaData, callback, app, true);
 }
Beispiel #9
0
 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;
 }