'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.17929
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.17929.
'
Namespace ObservationResultWebService
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="ObservationResultServicePort", [Namespace]:="http://medplus.com/observation"),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(AcknowledgedResult)),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(ObservationResultDocument)),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(ObservationResult)),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(ProviderAccount))>  _
    Partial Public Class ObservationResultService
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private getResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getMoreResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private acknowledgeResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getProviderAccountsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = Global.ObservationResultsSampleCode.My.MySettings.Default.ObservationResultsSampleCode_ObservationResultService_ObservationResultService
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Shadows Property Url() As String
            Get
                Return MyBase.Url
            End Get
            Set
                If (((Me.IsLocalFileSystemWebService(MyBase.Url) = true)  _
                            AndAlso (Me.useDefaultCredentialsSetExplicitly = false))  _
                            AndAlso (Me.IsLocalFileSystemWebService(value) = false)) Then
                    MyBase.UseDefaultCredentials = false
                End If
                MyBase.Url = value
            End Set
        End Property
        
        Public Shadows Property UseDefaultCredentials() As Boolean
            Get
                Return MyBase.UseDefaultCredentials
            End Get
            Set
                MyBase.UseDefaultCredentials = value
                Me.useDefaultCredentialsSetExplicitly = true
            End Set
        End Property
        
        '''<remarks/>
        Public Event getResultsCompleted As getResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getMoreResultsCompleted As getMoreResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event acknowledgeResultsCompleted As acknowledgeResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getProviderAccountsCompleted As getProviderAccountsCompletedEventHandler
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/observation", ResponseNamespace:="http://medplus.com/observation")>  _
        Public Function getResults(ByVal resultRequest As ObservationResultRequest) As <System.Xml.Serialization.SoapElementAttribute("result")> ObservationResultResponse
            Dim results() As Object = Me.Invoke("getResults", New Object() {resultRequest})
            Return CType(results(0),ObservationResultResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal resultRequest As ObservationResultRequest)
            Me.getResultsAsync(resultRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal resultRequest As ObservationResultRequest, ByVal userState As Object)
            If (Me.getResultsOperationCompleted Is Nothing) Then
                Me.getResultsOperationCompleted = AddressOf Me.OngetResultsOperationCompleted
            End If
            Me.InvokeAsync("getResults", New Object() {resultRequest}, Me.getResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getResultsCompleted(Me, New getResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/observation", ResponseNamespace:="http://medplus.com/observation")>  _
        Public Function getMoreResults(ByVal requestId As String) As <System.Xml.Serialization.SoapElementAttribute("result")> ObservationResultResponse
            Dim results() As Object = Me.Invoke("getMoreResults", New Object() {requestId})
            Return CType(results(0),ObservationResultResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getMoreResultsAsync(ByVal requestId As String)
            Me.getMoreResultsAsync(requestId, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getMoreResultsAsync(ByVal requestId As String, ByVal userState As Object)
            If (Me.getMoreResultsOperationCompleted Is Nothing) Then
                Me.getMoreResultsOperationCompleted = AddressOf Me.OngetMoreResultsOperationCompleted
            End If
            Me.InvokeAsync("getMoreResults", New Object() {requestId}, Me.getMoreResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetMoreResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getMoreResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getMoreResultsCompleted(Me, New getMoreResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/observation", ResponseNamespace:="http://medplus.com/observation")>  _
        Public Sub acknowledgeResults(ByVal ack As Acknowledgment)
            Me.Invoke("acknowledgeResults", New Object() {ack})
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal ack As Acknowledgment)
            Me.acknowledgeResultsAsync(ack, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal ack As Acknowledgment, ByVal userState As Object)
            If (Me.acknowledgeResultsOperationCompleted Is Nothing) Then
                Me.acknowledgeResultsOperationCompleted = AddressOf Me.OnacknowledgeResultsOperationCompleted
            End If
            Me.InvokeAsync("acknowledgeResults", New Object() {ack}, Me.acknowledgeResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OnacknowledgeResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.acknowledgeResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent acknowledgeResultsCompleted(Me, New System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="http://medplus.com/observation", ResponseNamespace:="http://medplus.com/observation")>  _
        Public Function getProviderAccounts() As <System.Xml.Serialization.SoapElementAttribute("result")> ProviderAccount()
            Dim results() As Object = Me.Invoke("getProviderAccounts", New Object(-1) {})
            Return CType(results(0),ProviderAccount())
        End Function
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync()
            Me.getProviderAccountsAsync(Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync(ByVal userState As Object)
            If (Me.getProviderAccountsOperationCompleted Is Nothing) Then
                Me.getProviderAccountsOperationCompleted = AddressOf Me.OngetProviderAccountsOperationCompleted
            End If
            Me.InvokeAsync("getProviderAccounts", New Object(-1) {}, Me.getProviderAccountsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetProviderAccountsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getProviderAccountsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getProviderAccountsCompleted(Me, New getProviderAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        Public Shadows Sub CancelAsync(ByVal userState As Object)
            MyBase.CancelAsync(userState)
        End Sub
        
        Private Function IsLocalFileSystemWebService(ByVal url As String) As Boolean
            If ((url Is Nothing)  _
                        OrElse (url Is String.Empty)) Then
                Return false
            End If
            Dim wsUri As System.Uri = New System.Uri(url)
            If ((wsUri.Port >= 1024)  _
                        AndAlso (String.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) = 0)) Then
                Return true
            End If
            Return false
        End Function
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class ObservationResultRequest
        
        Private endDateField As String
        
        Private maxMessagesField As System.Nullable(Of Integer)
        
        Private providerAccountsField() As ProviderAccount
        
        Private retrieveFinalsOnlyField As Boolean
        
        Private startDateField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property endDate() As String
            Get
                Return Me.endDateField
            End Get
            Set
                Me.endDateField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property maxMessages() As System.Nullable(Of Integer)
            Get
                Return Me.maxMessagesField
            End Get
            Set
                Me.maxMessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property providerAccounts() As ProviderAccount()
            Get
                Return Me.providerAccountsField
            End Get
            Set
                Me.providerAccountsField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property retrieveFinalsOnly() As Boolean
            Get
                Return Me.retrieveFinalsOnlyField
            End Get
            Set
                Me.retrieveFinalsOnlyField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property startDate() As String
            Get
                Return Me.startDateField
            End Get
            Set
                Me.startDateField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class ProviderAccount
        
        Private providerAccountNameField As String
        
        Private providerNameField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property providerAccountName() As String
            Get
                Return Me.providerAccountNameField
            End Get
            Set
                Me.providerAccountNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property providerName() As String
            Get
                Return Me.providerNameField
            End Get
            Set
                Me.providerNameField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class AcknowledgedResult
        
        Private ackCodeField As String
        
        Private documentIdsField() As String
        
        Private rejectionReasonField As String
        
        Private resultIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property ackCode() As String
            Get
                Return Me.ackCodeField
            End Get
            Set
                Me.ackCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property documentIds() As String()
            Get
                Return Me.documentIdsField
            End Get
            Set
                Me.documentIdsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property rejectionReason() As String
            Get
                Return Me.rejectionReasonField
            End Get
            Set
                Me.rejectionReasonField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property resultId() As String
            Get
                Return Me.resultIdField
            End Get
            Set
                Me.resultIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class Acknowledgment
        
        Private acknowledgedResultsField() As AcknowledgedResult
        
        Private requestIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property acknowledgedResults() As AcknowledgedResult()
            Get
                Return Me.acknowledgedResultsField
            End Get
            Set
                Me.acknowledgedResultsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class ObservationResultDocument
        
        Private documentDataField() As Byte
        
        Private documentIdField As String
        
        Private fileMimeTypeField As String
        
        Private fileNameField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(DataType:="base64Binary", IsNullable:=true)>  _
        Public Property documentData() As Byte()
            Get
                Return Me.documentDataField
            End Get
            Set
                Me.documentDataField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property documentId() As String
            Get
                Return Me.documentIdField
            End Get
            Set
                Me.documentIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property fileMimeType() As String
            Get
                Return Me.fileMimeTypeField
            End Get
            Set
                Me.fileMimeTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property fileName() As String
            Get
                Return Me.fileNameField
            End Get
            Set
                Me.fileNameField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class ObservationResult
        
        Private hL7MessageField() As Byte
        
        Private documentsField() As ObservationResultDocument
        
        Private observationResultTypeField As String
        
        Private resultIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(DataType:="base64Binary", IsNullable:=true)>  _
        Public Property HL7Message() As Byte()
            Get
                Return Me.hL7MessageField
            End Get
            Set
                Me.hL7MessageField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property documents() As ObservationResultDocument()
            Get
                Return Me.documentsField
            End Get
            Set
                Me.documentsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property observationResultType() As String
            Get
                Return Me.observationResultTypeField
            End Get
            Set
                Me.observationResultTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property resultId() As String
            Get
                Return Me.resultIdField
            End Get
            Set
                Me.resultIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.SoapTypeAttribute([Namespace]:="java:com.medplus.serviceHub.results.webservice.observation")>  _
    Partial Public Class ObservationResultResponse
        
        Private isMoreField As System.Nullable(Of Boolean)
        
        Private observationResultsField() As ObservationResult
        
        Private requestIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property isMore() As System.Nullable(Of Boolean)
            Get
                Return Me.isMoreField
            End Get
            Set
                Me.isMoreField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property observationResults() As ObservationResult()
            Get
                Return Me.observationResultsField
            End Get
            Set
                Me.observationResultsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.SoapElementAttribute(IsNullable:=true)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ObservationResultResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ObservationResultResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getMoreResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getMoreResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getMoreResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ObservationResultResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ObservationResultResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub acknowledgeResultsCompletedEventHandler(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getProviderAccountsCompletedEventHandler(ByVal sender As Object, ByVal e As getProviderAccountsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getProviderAccountsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As ProviderAccount()
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),ProviderAccount())
            End Get
        End Property
    End Class
End Namespace
