ClearCanvas.Dicom.Network.NetworkBase.Abort C# (CSharp) 메소드

Abort() 공개 메소드

Force a shutdown of the DICOM connection.

This routine will force the network connection for the DicomClient or DicomServerto be closed and the background thread for processing the association to shutdown. The routine will block until the shutdown has completed.

Note, for a graceful shutdown the SendAssociateAbort or SendReleaseRequest methods should be called. These routines will gracefully shutdown DICOM connections. The DicomClient.Join() method can then be called to wait for the background thread to clean up.

public Abort ( ) : void
리턴 void
		public void Abort()
		{
			try
			{
				if (State != DicomAssociationState.Sta1_Idle
				 && State != DicomAssociationState.Sta13_AwaitingTransportConnectionClose)
					SendAssociateAbort(DicomAbortSource.ServiceUser, DicomAbortReason.NotSpecified);
			}
			finally
			{
				CloseNetwork(System.Threading.Timeout.Infinite);
			}
		}

Same methods

NetworkBase::Abort ( int millisecondTimeout ) : void