56 references to AppVerifierErrorCode
System.Web (56)
Util\AppVerifier.cs (53)
21
private static readonly Dictionary<
AppVerifierErrorCode
, string> _errorStringMappings = new Dictionary<
AppVerifierErrorCode
, string>() {
22
{
AppVerifierErrorCode
.HttpApplicationInstanceWasNull, SR.AppVerifier_Errors_HttpApplicationInstanceWasNull },
23
{
AppVerifierErrorCode
.BeginHandlerDelegateWasNull, SR.AppVerifier_Errors_BeginHandlerDelegateWasNull },
24
{
AppVerifierErrorCode
.AsyncCallbackInvokedMultipleTimes, SR.AppVerifier_Errors_AsyncCallbackInvokedMultipleTimes },
25
{
AppVerifierErrorCode
.AsyncCallbackInvokedWithNullParameter, SR.AppVerifier_Errors_AsyncCallbackInvokedWithNullParameter },
26
{
AppVerifierErrorCode
.AsyncCallbackGivenAsyncResultWhichWasNotCompleted, SR.AppVerifier_Errors_AsyncCallbackGivenAsyncResultWhichWasNotCompleted },
27
{
AppVerifierErrorCode
.AsyncCallbackInvokedSynchronouslyButAsyncResultWasNotMarkedCompletedSynchronously, SR.AppVerifier_Errors_AsyncCallbackInvokedSynchronouslyButAsyncResultWasNotMarkedCompletedSynchronously },
28
{
AppVerifierErrorCode
.AsyncCallbackInvokedAsynchronouslyButAsyncResultWasMarkedCompletedSynchronously, SR.AppVerifier_Errors_AsyncCallbackInvokedAsynchronouslyButAsyncResultWasMarkedCompletedSynchronously },
29
{
AppVerifierErrorCode
.AsyncCallbackInvokedWithUnexpectedAsyncResultInstance, SR.AppVerifier_Errors_AsyncCallbackInvokedWithUnexpectedAsyncResultInstance },
30
{
AppVerifierErrorCode
.AsyncCallbackInvokedAsynchronouslyThenBeginHandlerThrew, SR.AppVerifier_Errors_AsyncCallbackInvokedEvenThoughBeginHandlerThrew },
31
{
AppVerifierErrorCode
.BeginHandlerThrewThenAsyncCallbackInvokedAsynchronously, SR.AppVerifier_Errors_AsyncCallbackInvokedEvenThoughBeginHandlerThrew },
32
{
AppVerifierErrorCode
.AsyncCallbackInvokedSynchronouslyThenBeginHandlerThrew, SR.AppVerifier_Errors_AsyncCallbackInvokedEvenThoughBeginHandlerThrew },
33
{
AppVerifierErrorCode
.AsyncCallbackInvokedWithUnexpectedAsyncResultAsyncState, SR.AppVerifier_Errors_AsyncCallbackInvokedWithUnexpectedAsyncResultAsyncState },
34
{
AppVerifierErrorCode
.AsyncCallbackCalledAfterHttpApplicationReassigned, SR.AppVerifier_Errors_AsyncCallbackCalledAfterHttpApplicationReassigned },
35
{
AppVerifierErrorCode
.BeginHandlerReturnedNull, SR.AppVerifier_Errors_BeginHandlerReturnedNull },
36
{
AppVerifierErrorCode
.BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButWhichWasNotCompleted, SR.AppVerifier_Errors_BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButWhichWasNotCompleted },
37
{
AppVerifierErrorCode
.BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButAsyncCallbackNeverCalled, SR.AppVerifier_Errors_BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButAsyncCallbackNeverCalled },
38
{
AppVerifierErrorCode
.BeginHandlerReturnedUnexpectedAsyncResultInstance, SR.AppVerifier_Errors_AsyncCallbackInvokedWithUnexpectedAsyncResultInstance },
39
{
AppVerifierErrorCode
.BeginHandlerReturnedUnexpectedAsyncResultAsyncState, SR.AppVerifier_Errors_BeginHandlerReturnedUnexpectedAsyncResultAsyncState },
40
{
AppVerifierErrorCode
.SyncContextSendOrPostCalledAfterRequestCompleted, SR.AppVerifier_Errors_SyncContextSendOrPostCalledAfterRequestCompleted },
41
{
AppVerifierErrorCode
.SyncContextSendOrPostCalledBetweenNotifications, SR.AppVerifier_Errors_SyncContextSendOrPostCalledBetweenNotifications },
42
{
AppVerifierErrorCode
.SyncContextPostCalledInNestedNotification, SR.AppVerifier_Errors_SyncContextPostCalledInNestedNotification },
43
{
AppVerifierErrorCode
.RequestNotificationCompletedSynchronouslyWithNotificationContextPending, SR.AppVerifier_Errors_RequestNotificationCompletedSynchronouslyWithNotificationContextPending },
44
{
AppVerifierErrorCode
.NotificationContextHasChangedAfterSynchronouslyProcessingNotification, SR.AppVerifier_Errors_NotificationContextHasChangedAfterSynchronouslyProcessingNotification },
45
{
AppVerifierErrorCode
.PendingProcessRequestNotificationStatusAfterCompletingNestedNotification, SR.AppVerifier_Errors_PendingProcessRequestNotificationStatusAfterCompletingNestedNotification },
76
private delegate void AssertDelegate(bool condition,
AppVerifierErrorCode
errorCode);
268
assert(httpApplication != null,
AppVerifierErrorCode
.HttpApplicationInstanceWasNull);
269
assert(originalDelegate != null,
AppVerifierErrorCode
.BeginHandlerDelegateWasNull);
288
assert(newAsyncCallbackInvocationCount == 1,
AppVerifierErrorCode
.AsyncCallbackInvokedMultipleTimes);
291
assert(asyncResult != null,
AppVerifierErrorCode
.AsyncCallbackInvokedWithNullParameter);
302
assert(asyncResult.IsCompleted,
AppVerifierErrorCode
.AsyncCallbackGivenAsyncResultWhichWasNotCompleted);
313
assert(tempThreadWhichCalledBeginHandler != Thread.CurrentThread,
AppVerifierErrorCode
.AsyncCallbackInvokedSynchronouslyButAsyncResultWasNotMarkedCompletedSynchronously);
323
assert(asyncResult == asyncResultHolder.Value,
AppVerifierErrorCode
.AsyncCallbackInvokedWithUnexpectedAsyncResultInstance);
324
assert(!asyncResult.CompletedSynchronously,
AppVerifierErrorCode
.AsyncCallbackInvokedAsynchronouslyButAsyncResultWasMarkedCompletedSynchronously);
329
assert(false,
AppVerifierErrorCode
.BeginHandlerThrewThenAsyncCallbackInvokedAsynchronously);
334
assert(asyncResult.AsyncState == state,
AppVerifierErrorCode
.AsyncCallbackInvokedWithUnexpectedAsyncResultAsyncState);
339
assert(assignedContextUponCallingBeginHandler == httpApplication.Context,
AppVerifierErrorCode
.AsyncCallbackCalledAfterHttpApplicationReassigned);
356
assert(asyncResultReturnedByBeginHandler != null,
AppVerifierErrorCode
.BeginHandlerReturnedNull);
365
assert(asyncResultReturnedByBeginHandler.IsCompleted,
AppVerifierErrorCode
.BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButWhichWasNotCompleted);
366
assert(asyncCallbackInvocationHelper.TotalInvocations != 0,
AppVerifierErrorCode
.BeginHandlerReturnedAsyncResultMarkedCompletedSynchronouslyButAsyncCallbackNeverCalled);
379
assert(tempAsyncResultPassedToCallback == asyncResultReturnedByBeginHandler,
AppVerifierErrorCode
.BeginHandlerReturnedUnexpectedAsyncResultInstance);
383
assert(asyncResultReturnedByBeginHandler.AsyncState == state,
AppVerifierErrorCode
.BeginHandlerReturnedUnexpectedAsyncResultAsyncState);
414
assert(tempAsyncResultPassedToCallback.CompletedSynchronously,
AppVerifierErrorCode
.AsyncCallbackInvokedAsynchronouslyThenBeginHandlerThrew);
423
assert(!callbackRanToCompletion,
AppVerifierErrorCode
.AsyncCallbackInvokedSynchronouslyThenBeginHandlerThrew);
498
assert(currentThreadContextId != null && ReferenceEquals(originalThreadContextId, currentThreadContextId),
AppVerifierErrorCode
.SyncContextSendOrPostCalledAfterRequestCompleted);
502
assert(notificationContext != null,
AppVerifierErrorCode
.SyncContextSendOrPostCalledBetweenNotifications);
505
assert(!notificationContext.IsReEntry,
AppVerifierErrorCode
.SyncContextPostCalledInNestedNotification);
568
assert(!isReentry,
AppVerifierErrorCode
.PendingProcessRequestNotificationStatusAfterCompletingNestedNotification);
575
AppVerifierErrorCode
.RequestNotificationCompletedSynchronouslyWithNotificationContextPending);
580
AppVerifierErrorCode
.NotificationContextHasChangedAfterSynchronouslyProcessingNotification);
643
AppVerifierErrorCode
errorCode = ex.ErrorCode;
687
internal static string GetLocalizedDescriptionStringForError(
AppVerifierErrorCode
errorCode) {
Util\AppVerifierException.cs (3)
15
private readonly
AppVerifierErrorCode
_errorCode;
17
public AppVerifierException(
AppVerifierErrorCode
errorCode, string message)
25
public
AppVerifierErrorCode
ErrorCode {