示例#1
0
 private StorageScp(DicomServer server, ServerAssociationParameters assoc)
 {
     _statsRecorder = new AssociationStatisticsRecorder(server); 
 }
示例#2
0
		/// <summary>
		/// Called when received associate accept.  For StorageScu, we then attempt to send the first file.
		/// </summary>
		/// <param name="client">The client.</param>
		/// <param name="association">The association.</param>
		public override void OnReceiveAssociateAccept(DicomClient client, ClientAssociationParameters association)
		{
			base.OnReceiveAssociateAccept(client, association);

			Platform.Log(LogLevel.Info, "Association Accepted:\r\n{0}", association.ToString());

			_fileListIndex = 0;
			_stats = new AssociationStatisticsRecorder(client);
			SendCStoreUntilSuccess(client,association);
		}