Class DicomClient
Assembly: cs.temp.dll.dll
Syntax
public class DicomClient : IDicomClient
Constructors
DicomClient(String, Int32, Boolean, String, String, Int32, Int32, Int32, Nullable<Int32>)
Declaration
public DicomClient(string host, int port, bool useTls, string callingAe, string calledAe, int associationRequestTimeoutInMs = 5000, int associationReleaseTimeoutInMs = 10000, int associationLingerTimeoutInMs = 50, int? maximumNumberOfRequestsPerAssociation = null)
Parameters
Type |
Name |
Description |
String |
host |
DICOM host.
|
Int32 |
port |
Port.
|
Boolean |
useTls |
True if TLS security should be enabled, false otherwise.
|
String |
callingAe |
Calling Application Entity Title.
|
String |
calledAe |
Called Application Entity Title.
|
Int32 |
associationRequestTimeoutInMs |
Timeout in milliseconds for establishing association.
|
Int32 |
associationReleaseTimeoutInMs |
Timeout in milliseconds to break off association
|
Int32 |
associationLingerTimeoutInMs |
Timeout in milliseconds to keep open association after all requests have been processed.
|
Nullable<Int32> |
maximumNumberOfRequestsPerAssociation |
The maximum number of DICOM requests that can be sent over a single DICOM association
|
Properties
AdditionalExtendedNegotiations
Declaration
public List<DicomExtendedNegotiation> AdditionalExtendedNegotiations { get; set; }
Property Value
AdditionalPresentationContexts
Declaration
public List<DicomPresentationContext> AdditionalPresentationContexts { get; set; }
Property Value
AssociationLingerTimeoutInMs
Declaration
public int AssociationLingerTimeoutInMs { get; set; }
Property Value
AssociationReleaseTimeoutInMs
Declaration
public int AssociationReleaseTimeoutInMs { get; set; }
Property Value
AssociationRequestTimeoutInMs
Declaration
public int AssociationRequestTimeoutInMs { get; set; }
Property Value
CalledAe
Declaration
public string CalledAe { get; }
Property Value
CallingAe
Declaration
public string CallingAe { get; }
Property Value
FallbackEncoding
Declaration
public Encoding FallbackEncoding { get; set; }
Property Value
Type |
Description |
Encoding |
|
Host
Declaration
public string Host { get; }
Property Value
IsSendRequired
Declaration
public bool IsSendRequired { get; }
Property Value
Logger
Declaration
public Logger Logger { get; set; }
Property Value
MaximumNumberOfRequestsPerAssociation
Declaration
public int? MaximumNumberOfRequestsPerAssociation { get; set; }
Property Value
NetworkManager
Declaration
public NetworkManager NetworkManager { get; set; }
Property Value
OnCStoreRequest
Declaration
public DicomClientCStoreRequestHandler OnCStoreRequest { get; set; }
Property Value
OnNEventReportRequest
Declaration
public DicomClientNEventReportRequestHandler OnNEventReportRequest { get; set; }
Property Value
Options
Declaration
public DicomServiceOptions Options { get; set; }
Property Value
Port
Declaration
Property Value
UseTls
Declaration
public bool UseTls { get; }
Property Value
Methods
AddRequestAsync(DicomRequest)
Declaration
public Task AddRequestAsync(DicomRequest dicomRequest)
Parameters
Returns
AddRequestsAsync(DicomRequest[])
Declaration
public async Task AddRequestsAsync(params DicomRequest[] requests)
Parameters
Returns
AddRequestsAsync(IEnumerable<DicomRequest>)
Declaration
public async Task AddRequestsAsync(IEnumerable<DicomRequest> dicomRequests)
Parameters
Returns
NegotiateAsyncOps(Int32, Int32)
Declaration
public void NegotiateAsyncOps(int invoked = 0, int performed = 0)
Parameters
Type |
Name |
Description |
Int32 |
invoked |
|
Int32 |
performed |
|
SendAsync(CancellationToken, DicomClientCancellationMode)
Declaration
public async Task SendAsync(CancellationToken cancellationToken = null, DicomClientCancellationMode cancellationMode = DicomClientCancellationMode.ImmediatelyReleaseAssociation)
Parameters
Returns
Events
AssociationAccepted
Declaration
public event EventHandler<AssociationAcceptedEventArgs> AssociationAccepted
Event Type
AssociationRejected
Declaration
public event EventHandler<AssociationRejectedEventArgs> AssociationRejected
Event Type
AssociationReleased
Declaration
public event EventHandler AssociationReleased
Event Type
RequestTimedOut
Declaration
public event EventHandler<RequestTimedOutEventArgs> RequestTimedOut
Event Type
StateChanged
Declaration
public event EventHandler<StateChangedEventArgs> StateChanged
Event Type
Implements