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