コード例 #1
0
 /// <summary>
 /// Report operation warning; it is a normal occurence in the work of the system. It can be caused
 /// for example by the lack of access to a resource or some error in a data stream.
 /// </summary>
 /// <param name="warningMessage"></param>
 public static void OperationWarning(string warningMessage)
 {
     TracerHelper.TraceWarning(warningMessage);
     //if (GlobalDiagnosticsMode)
     //{
     //    Debug.Fail(warningMessage);
     //}
 }
コード例 #2
0
        /// <summary>
        /// A Warning notifies that in some part of the systems operation a recovarable error has occured.
        /// </summary>
        /// <param name="warningMessage"></param>
        public static void Warning(string warningMessage)
        {
            TracerHelper.TraceWarning(warningMessage);

            if (GlobalDiagnosticsMode)
            {
                Debug.Fail(warningMessage);
            }
        }