Пример #1
0
            public static SecurityToken End(IAsyncResult result)
            {
                if (result == null)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("result");
                }

                SecurityTokenAsyncResult completedResult = result as SecurityTokenAsyncResult;

                if (completedResult == null)
                {
                    throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.InvalidAsyncResult), "result"));
                }

                return(completedResult.token);
            }
 protected virtual SecurityToken EndGetTokenCore(IAsyncResult result)
 {
     return(SecurityTokenAsyncResult.End(result));
 }
 protected virtual void EndCancelTokenCore(IAsyncResult result)
 {
     SecurityTokenAsyncResult.End(result);
 }