void WebAddin_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e) { if (e.Rejected) { //get some information about the error } }
static void scu_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e) { DicomConnection scu = sender as DicomConnection; if (!e.Rejected) { Utils.LogEvent(LogType.Information, MessageDirection.Input, Utils.ASSOCIATE_REQUEST_ACCEPTED, DicomCommandType.Undefined, null, scu, null); } else { Utils.LogEvent(LogType.Information, MessageDirection.Input, string.Format(Utils.ASSOCIATE_REQUEST_REJECTED, e.Reason), DicomCommandType.Undefined, null, scu, null); } }
void store_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e) { StoreScu scu = sender as StoreScu; if (!e.Rejected) { LogEvent(LogType.Information, MessageDirection.Input, ASSOCIATE_REQUEST_ACCEPTED, DicomCommandType.Undefined, null, scu, null); } else { LogEvent(LogType.Information, MessageDirection.Input, string.Format(ASSOCIATE_REQUEST_REJECTED, e.Reason), DicomCommandType.Undefined, null, scu, null); } }
private void find_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e) { try { if (e.Rejected) { throw new Leadtools.Dicom.Scu.Common.ClientAssociationException(Constants.Exception.AssociationFailed, e.Reason); } } catch (Exception exception) { System.Diagnostics.Debug.Assert(false, exception.Message); throw; } }
void _find_AfterAssociateRequest(object sender, AfterAssociateRequestEventArgs e) { }