1 instantiation of TypedAsyncResult
System.IdentityModel (1)
System\IdentityModel\SecurityTokenService.cs (1)
197FederatedAsyncState asyncState = new FederatedAsyncState(request, principal, new TypedAsyncResult<RSTR>(callback, state));
12 references to TypedAsyncResult
System.IdentityModel (12)
System\IdentityModel\SecurityTokenService.cs (9)
604if (!(result is TypedAsyncResult<RSTR>)) 606throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2012, typeof(TypedAsyncResult<RSTR>), result.GetType()))); 609return TypedAsyncResult<RSTR>.End(result); 805TypedAsyncResult<RSTR> typedResult = state.Result as TypedAsyncResult<RSTR>; 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType()))); 923TypedAsyncResult<RSTR> typedResult = state.Result as TypedAsyncResult<RSTR>; 926throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID2004, typeof(TypedAsyncResult<RSTR>), state.Result.GetType())));
System\IdentityModel\TypedAsyncResult.cs (3)
77TypedAsyncResult<T> completedResult = result as TypedAsyncResult<T>; 81throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument( "result", SR.GetString( SR.ID2004, typeof( TypedAsyncResult<T>), result.GetType() ) );