Esempio n. 1
0
        protected override SecurityToken EndGetTokenCore(IAsyncResult result)
        {
            CompletedAsyncResult caResult = result as CompletedAsyncResult;

            if (caResult != null)
            {
                return(caResult.Token);
            }
            else
            {
                GenericXmlSecurityToken token = (GenericXmlSecurityToken)this.innerTokenProvider.EndGetToken(result);
                this.cache.AddToken(token, target, issuer);
                return(token);
            }
        }
 protected override void OnEndOpen(IAsyncResult result)
 {
     CompletedAsyncResult.End(result);
 }