Exemple #1
0
        /* ---------------------------------------------------------------------- */

        public void EnqueueCredentialRequest(string Domain, string Realm, string Url)
        {
            lock (this.CredentialRequests)
            {
                MacroscopeCredentialRequest CredentialRequest = new MacroscopeCredentialRequest(Domain, Realm, Url);

                this.CredentialRequests.Enqueue(CredentialRequest);
            }
        }
Exemple #2
0
        /* ---------------------------------------------------------------------- */

        public MacroscopeCredentialRequest DequeueCredentialRequest()
        {
            MacroscopeCredentialRequest CredentialRequest = null;

            lock (this.CredentialRequests)
            {
                try
                {
                    if (this.CredentialRequests.Peek() != null)
                    {
                        CredentialRequest = this.CredentialRequests.Dequeue();
                    }
                }
                catch (Exception ex)
                {
                    DebugMsg(string.Format("DequeueCredentialRequest: {0}", ex.Message));
                }
            }

            return(CredentialRequest);
        }