WorkflowRuntime.ServicesExceptionNotHandled 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
클래스에서 WorkflowRuntimeService 파생된 서비스가 호출 RaiseServicesExceptionNotHandledEvent(Exception, Guid)될 때 발생합니다.
public:
event EventHandler<System::Workflow::Runtime::ServicesExceptionNotHandledEventArgs ^> ^ ServicesExceptionNotHandled;
public event EventHandler<System.Workflow.Runtime.ServicesExceptionNotHandledEventArgs> ServicesExceptionNotHandled;
member this.ServicesExceptionNotHandled : EventHandler<System.Workflow.Runtime.ServicesExceptionNotHandledEventArgs>
Public Custom Event ServicesExceptionNotHandled As EventHandler(Of ServicesExceptionNotHandledEventArgs)
Public Event ServicesExceptionNotHandled As EventHandler(Of ServicesExceptionNotHandledEventArgs)
이벤트 유형
설명
클래스에서 파생된 서비스는 메서드를 WorkflowRuntimeService 호출 RaiseServicesExceptionNotHandledEvent 하여 실행 중에 처리할 수 없는 예외가 발생했음을 이벤트에 구독자에게 ServicesExceptionNotHandled 알릴 수 있습니다. 이 이벤트를 구독하여 복구 메커니즘을 구현할 수 있습니다.
이 이벤트는 워크플로 런타임 엔진에서 워크플로 인스턴스를 아직 만들지 않았고 예외가 발생할 때 발생합니다. 이 시나리오에서는 호스트 애플리케이션에 예외가 발생했음을 알리는 유일한 방법은 이 이벤트를 발생시키는 것입니다. 그러나 워크플로 런타임 엔진은 이를 직접 호출하지 않습니다. 대신 워크플로 런타임 엔진은 워크플로 인스턴스에 예외를 전달하거나 인스턴스가 없는 경우 호출자에게 다시 throw합니다. 이 경우 실제로 이 이벤트를 발생시키는 서비스입니다. 고유한 지속성 또는 스케줄러 서비스를 만드는 경우 기본 RaiseServicesExceptionNotHandledEvent 메서드를 통해 이 이벤트를 직접 구현해야 합니다.
ServicesExceptionNotHandled 이벤트의 경우 보낸 사람에게는 서비스를 사용 중이던 워크플로 인스턴스와 ExceptionWorkflowEventArgs 처리할 수 없는 워크플로 인스턴스가 포함 WorkflowRuntimeGuid 됩니다.
이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생을 참조하세요.