Exemple #1
0
        public static Task <IDicomClientState> TransitionToReleaseAssociationState(this DicomClient dicomClient,
                                                                                   IInitialisationWithAssociationParameters parameters, DicomClientCancellation cancellation)
        {
            var releaseAssociationParameters = new DicomClientReleaseAssociationState.InitialisationParameters(parameters.Association, parameters.Connection);
            var releaseAssociationState      = new DicomClientReleaseAssociationState(dicomClient, releaseAssociationParameters);

            return(dicomClient.Transition(releaseAssociationState, cancellation));
        }
Exemple #2
0
        public static Task <IDicomClientState> TransitionToLingerState(this DicomClient dicomClient,
                                                                       IInitialisationWithAssociationParameters parameters, DicomClientCancellation cancellation)
        {
            var lingerParameters = new DicomClientLingeringState.InitialisationParameters(parameters.Association, parameters.Connection);
            var lingerState      = new DicomClientLingeringState(dicomClient, lingerParameters);

            return(dicomClient.Transition(lingerState, cancellation));
        }
 protected DicomClientWithAssociationState(IInitialisationWithAssociationParameters initialisationParameters) : base(initialisationParameters)
 {
     if (initialisationParameters == null)
     {
         throw new ArgumentNullException(nameof(initialisationParameters));
     }
     Association = initialisationParameters.Association ?? throw new ArgumentNullException(nameof(initialisationParameters.Association));
 }
Exemple #4
0
 public static Task <IDicomClientState> TransitionToSendingRequestsState(this DicomClient dicomClient,
                                                                         IInitialisationWithAssociationParameters parameters, DicomClientCancellation cancellation)
 {
     return(TransitionToSendingRequestsState(dicomClient, parameters, parameters.Association, cancellation));
 }