本文整理汇总了C#中ClearCanvas.Dicom.Network.DicomServer.SendAssociateAccept方法的典型用法代码示例。如果您正苦于以下问题:C# DicomServer.SendAssociateAccept方法的具体用法?C# DicomServer.SendAssociateAccept怎么用?C# DicomServer.SendAssociateAccept使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ClearCanvas.Dicom.Network.DicomServer
的用法示例。
在下文中一共展示了DicomServer.SendAssociateAccept方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnReceiveAssociateRequest
public void OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
{
if (_delayAssociationAccept.Checked)
Thread.Sleep(TimeSpan.FromSeconds(35));
if (_rejectAssociation.Checked)
server.SendAssociateReject(DicomRejectResult.Permanent, DicomRejectSource.ServiceUser, DicomRejectReason.CallingAENotRecognized);
else
server.SendAssociateAccept(association);
}
示例2: OnReceiveAssociateRequest
public void OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
{
server.SendAssociateAccept(association);
}
示例3:
void IDicomServerHandler.OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
{
//_sessionDebug.SetAssociationDumpString(association);
server.SendAssociateAccept(association);
Platform.Log(LogLevel.Info,string.Format("Accepting association between {0} and {1}.",
association.CallingAE, association.CalledAE));
}
示例4:
void IDicomServerHandler.OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
{
VBLogger.LogDebug("Receive Associate Request from" + association.CallingAE);
//WriteLog("----------------------------------------------");
server.SendAssociateAccept(association);
VBLogger.LogDebug("Send Associate Respose To " + association.CallingAE);
}
示例5:
/// <summary>
/// Association request.
/// </summary>
/// <param name="server"></param>
/// <param name="association"></param>
void IDicomServerHandler.OnReceiveAssociateRequest(DicomServer server, ServerAssociationParameters association)
{
server.SendAssociateAccept(association);
ClearCanvas.Common.Platform.Log(LogLevel.Info, "Association request received from {0} ({1}).", association.CallingAE, association.RemoteEndPoint.Address);
}