DicomObjects.NET10 Documentation
DicomObjects.DicomWeb Namespace / WorkItemWebClient Class / SuspendGlobalSubscriptionAsync Method
The Subscribe Target Resource
The AETitle of Subscriber
A token that may be used to cancel the operation



In This Topic
    SuspendGlobalSubscriptionAsync Method
    In This Topic
    This asynchronous transaction is used to stop the origin server from automatically subscribing the User-Agent to new Workitems. This does not delete any existing subscriptions to specific Workitems.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(DicomObjects.DicomWeb.WorkItemWebClient/d__40)> 
    Public Function SuspendGlobalSubscriptionAsync( _ 
       ByVal Resource As SubscribeTargetResource, _ 
       ByVal AETitle As String, _ 
       Optional ByVal cancellationToken As CancellationToken _ 
    ) As Task(Of HttpResponseMessage)
    'Usage
     
    
    Dim instance As WorkItemWebClient
    Dim Resource As SubscribeTargetResource
    Dim AETitle As String
    Dim cancellationToken As CancellationToken
    Dim value As Task(Of HttpResponseMessage)
     
    value = instance.SuspendGlobalSubscriptionAsync(Resource, AETitle, cancellationToken)
    [AsyncStateMachine(DicomObjects.DicomWeb.WorkItemWebClient/d__40)] 
    public Task<HttpResponseMessage> SuspendGlobalSubscriptionAsync( 
       SubscribeTargetResource Resource, 
       string AETitle, 
       CancellationToken cancellationToken 
    )
    [AsyncStateMachine(DicomObjects.DicomWeb.WorkItemWebClient/d__40)] 
    public: 
    Task<HttpResponseMessage^>^ SuspendGlobalSubscriptionAsync( 
       SubscribeTargetResource Resource, 
       String^ AETitle, 
       CancellationToken cancellationToken 
    ) 

    Parameters

    Resource
    The Subscribe Target Resource
    AETitle
    The AETitle of Subscriber
    cancellationToken
    A token that may be used to cancel the operation

    Return Value

    HttpResponseMessage from remote web server
    Remarks
    The async operation will return as soon as the response is available and headers are read (content is not read yet)
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also