WorkflowQueuingService 클래스

정의

주의

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

WorkflowQueue 개체의 관리를 위해 서비스를 제공합니다.

public ref class WorkflowQueuingService
public class WorkflowQueuingService
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class WorkflowQueuingService
type WorkflowQueuingService = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowQueuingService = class
Public Class WorkflowQueuingService
상속
WorkflowQueuingService
특성

예제

다음 코드 예제에서는 CreateQueue 메서드를 호출하여 WorkflowQueuingService 개체를 초기화하는 ActivityExecutionContext.GetService라는 메서드를 보여 줍니다. 그런 다음 Exists 메서드를 사용하여 지정된 이름의 WorkflowQueue가 있는지 확인합니다. 없는 경우 코드에서 CreateWorkflowQueue 메서드를 호출하고, 있는 경우 코드에서 GetWorkflowQueue 메서드를 호출합니다.

이 코드 예제는 FileSystemEvent.cs 파일에 있는 File Watcher Activity SDK 샘플의 일부입니다. 자세한 내용은 파일 시스템 감시자 작업합니다.

private WorkflowQueue CreateQueue(ActivityExecutionContext context)
{
    Console.WriteLine("CreateQueue");
    WorkflowQueuingService qService = context.GetService<WorkflowQueuingService>();

    if (!qService.Exists(this.QueueName))
    {
        qService.CreateWorkflowQueue(this.QueueName, true);
    }

    return qService.GetWorkflowQueue(this.QueueName);
}
Private Function CreateQueue(ByVal context As ActivityExecutionContext) As WorkflowQueue
    Console.WriteLine("CreateQueue")
    Dim qService As WorkflowQueuingService = context.GetService(Of WorkflowQueuingService)()

    If Not qService.Exists(Me.queueName) Then
        qService.CreateWorkflowQueue(Me.queueName, True)
    End If

    Return qService.GetWorkflowQueue(Me.QueueName)
End Function

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

WorkflowQueuingService는 워크플로 인스턴스와 연결된 워크플로 큐를 관리하는 데 사용할 수 있는 메서드를 제공합니다.

필드

PendingMessagesProperty
사용되지 않음.

WorkflowQueuingService와 연결된 워크플로 큐에서 사용되지 않은 항목을 포함합니다.

메서드

CreateWorkflowQueue(IComparable, Boolean)
사용되지 않음.

지정된 이름과 트랜잭션 범위를 사용하여 WorkflowQueue를 만듭니다.

DeleteWorkflowQueue(IComparable)
사용되지 않음.

지정된 WorkflowQueue를 삭제합니다.

Equals(Object)
사용되지 않음.

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
Exists(IComparable)
사용되지 않음.

지정된 WorkflowQueue가 있는지 테스트합니다.

GetHashCode()
사용되지 않음.

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()
사용되지 않음.

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
GetWorkflowQueue(IComparable)
사용되지 않음.

지정된 WorkflowQueue를 검색합니다.

MemberwiseClone()
사용되지 않음.

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()
사용되지 않음.

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상

추가 정보