Ejemplo n.º 1
0
        private static void ClientOnAssociationAccepted(object sender, AssociationAcceptedEventArgs e)
        {
            var association = e.Association;

            LogToDebugConsole($"Association was accepted by remote host: {association.RemoteHost} running on port: {association.RemotePort}");

            foreach (var presentationContext in association.PresentationContexts)
            {
                if (presentationContext.Result == DicomPresentationContextResult.Accept)
                {
                    LogToDebugConsole($"\t {presentationContext.AbstractSyntax} was accepted");
                    LogToDebugConsole($"\t Negotiation result was: {presentationContext.GetResultDescription()}");
                    LogToDebugConsole($"\t Abstract syntax accepted: {presentationContext.AbstractSyntax}");
                    LogToDebugConsole($"\t Transfer syntax accepted: {presentationContext.AcceptedTransferSyntax.ToString()}");
                }
                else
                {
                    LogToDebugConsole($"\t Presentation context with proposed abstract syntax of '{presentationContext.AbstractSyntax}' was not accepted");
                    LogToDebugConsole($"\t Reject reason was {presentationContext.GetResultDescription()}");
                }
            }
        }
Ejemplo n.º 2
0
 private static void OnAssociationAccepted(object sender, AssociationAcceptedEventArgs e)
 {
     LogToDebugConsole($"Association was accepted by:{e.Association.RemoteHost}");
 }
Ejemplo n.º 3
0
 internal void NotifyAssociationAccepted(AssociationAcceptedEventArgs eventArgs)
 => AssociationAccepted?.Invoke(this, eventArgs);
 public void OnAssociationAccept(object sender, AssociationAcceptedEventArgs args)
 {
     _logger.Log(LogLevel.Information, $"OnAssociationAccept {args.Association.CalledAE}");
 }