예제 #1
0
            /// <inheritdoc />
            public void OnReceiveAssociationAccept(DicomAssociation association)
            {
                foreach (var ctx in _client.AdditionalPresentationContexts)
                {
                    foreach (var item in
                             association.PresentationContexts.Where(pc => pc.AbstractSyntax == ctx.AbstractSyntax))
                    {
                        ctx.SetResult(item.Result, item.AcceptedTransferSyntax);
                    }
                }

                SetHasAssociationFlag(true);
                _client.AssociationAccepted(_client, new AssociationAcceptedEventArgs(association));
            }