示例#1
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
 public override void Start()
 {
     K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo();
     WmK3pServerInfo.RegToServerInfo(KwmCfg.Cur, ssi.Info);
     K3p.kpp_lookup_rec_addr lra = new K3p.kpp_lookup_rec_addr();
     lra.AddrArray = EmailList.ToArray();
     m_kmodQuery   = new KmodQuery();
     m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { ssi, lra }, HandleLookupRecAddrResult);
 }
示例#2
0
        /// <summary>
        /// Submit the query using the credentials obtained from the registry
        /// specified.
        /// </summary>
        public void Submit(WmKmodBroker broker, KwmCfg cfg, WmLoginTicketQueryDelegate callback)
        {
            // Set the proper callback.
            Callback2 = callback;

            // Fill out the server information.
            K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo();
            WmK3pServerInfo.RegToServerInfo(cfg, ssi.Info);

            // Submit the query.
            base.Submit(broker, new K3pCmd[] { ssi, new K3p.kpp_get_kws_ticket() }, AnalyseResults);
        }
示例#3
0
        /// <summary>
        /// Lookup the recipient addresses to determine if they are members.
        /// Return true if a lookup is being performed.
        /// </summary>
        public bool LookupRecAddr(KmodQueryDelegate callback, bool showWizardFlag)
        {
            // Clear the cached recipient security information.
            foreach (KwsInviteOpUser u in InviteParams.UserArray)
            {
                u.KeyID = 0;
                u.OrgName = "";
                u.Pwd = "";
            }

            // If the workspace is open, if there are no recipients to
            // invite or if all recipients are already invited, skip the lookup.
            if (!Creds.SecureFlag || InviteParams.NotAlreadyInvitedUserArray.Count == 0)
                return false;

            // Perform the key lookup.
            Op.m_opStep = KwmCoreKwsOpStep.LookupRec;

            // Fill out the server information.
            K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo();
            WmK3pServerInfo.RegToServerInfo(WmWinRegistry.Spawn(), ssi.Info);

            // Fill out the recipient array with email addresses that are not
            // already invited to the workspace.
            List<String> addrList = new List<String>();
            foreach (KwsInviteOpUser u in InviteParams.NotAlreadyInvitedUserArray)
                addrList.Add(u.EmailAddress);

            K3p.kpp_lookup_rec_addr lra = new K3p.kpp_lookup_rec_addr();
            lra.AddrArray = addrList.ToArray();

            // Send the query.
            Op.m_kmodQuery = new KmodQuery();
            Op.m_kmodQuery.Submit(Op.Wm.KmodBroker, new K3pCmd[] { ssi, lra }, callback);

            // Tell the wizard to wait.
            if (showWizardFlag) Wiz.ShowPleaseWait("Looking up who needs a password");

            return true;
        }
示例#4
0
        /// <summary>
        /// Submit the query using the credentials obtained from the registry
        /// specified.
        /// </summary>
        public void Submit(WmKmodBroker broker, WmWinRegistry registry, WmLoginTicketQueryDelegate callback)
        {
            // Set the proper callback.
            Callback2 = callback;

            // Fill out the server information.
            K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo();
            WmK3pServerInfo.RegToServerInfo(registry, ssi.Info);

            // Submit the query.
            base.Submit(broker, new K3pCmd[] { ssi, new K3p.kpp_get_kws_ticket() }, AnalyseResults);
        }
示例#5
0
文件: WmCoreOp.cs 项目: tmbx/kwm-ng
 public override void Start()
 {
     K3p.K3pSetServerInfo ssi = new K3p.K3pSetServerInfo();
     WmK3pServerInfo.RegToServerInfo(KwmCfg.Cur, ssi.Info);
     K3p.kpp_lookup_rec_addr lra = new K3p.kpp_lookup_rec_addr();
     lra.AddrArray = EmailList.ToArray();
     m_kmodQuery = new KmodQuery();
     m_kmodQuery.Submit(Wm.KmodBroker, new K3pCmd[] { ssi, lra }, HandleLookupRecAddrResult);
 }