protected virtual void OnInconsistencyDetected(ServerModeInconsistencyDetectedEventArgs e) { if (InconsistencyDetected != null) { InconsistencyDetected(this, e); } }
void _List_InconsistencyDetected(object sender, ServerModeInconsistencyDetectedEventArgs e) { OnInconsistencyDetected(e); if (e.Handled) { return; } SynchronizationContext context = SynchronizationContext.Current; if (IsGoodContext(context)) { PostState state = new PostState(); state.ShouldFailWithException = true; context.Post(DoPostponedReload, state); state.ShouldFailWithException = false; } else { FailUnderAspOrAnotherNonPostEnvironment(); } }