ClearCanvas.Dicom.Network.NetworkBase.LogSendReceive C# (CSharp) Method

LogSendReceive() private static method

private static LogSendReceive ( bool receive, DicomAttributeCollection metaInfo, DicomAttributeCollection dataSet ) : void
receive bool
metaInfo DicomAttributeCollection
dataSet DicomAttributeCollection
return void
        private static void LogSendReceive(bool receive, DicomAttributeCollection metaInfo, DicomAttributeCollection dataSet)
        {
			if (Platform.IsLogLevelEnabled(LogLevel.Debug))
			{
				string receiveOrSend = receive ? "Receive" : "Send";
				Platform.Log(LogLevel.Debug,
				             receiveOrSend + " MetaInfo:\r\n" + (metaInfo != null ? metaInfo.DumpString : String.Empty));
				Platform.Log(LogLevel.Debug, receiveOrSend + " DataSet:\r\n" + (dataSet != null ? dataSet.DumpString : String.Empty));
			}
		}
		#endregion