예제 #1
0
 private void DisposeLogger()
 {
     lock (_SyncRoot)
     {
         if (_Logger != null)
         {
             _Logger.Dispose();
             _Logger = null;
         }
     }
 }
예제 #2
0
        /// <summary>
        /// Associates a logger to this instance.
        /// </summary>
        /// <remarks>If a logger already is associated, it will be disposed.</remarks>
        /// <param name="logger"></param>
        public void StartLogging(WF.Player.Core.Formats.GWL logger)
        {
            lock (_SyncRoot)
            {
                if (_Logger != null)
                {
                    DisposeLogger();
                }

                _Logger = logger;
            }
        }
예제 #3
0
		private void DisposeLogger()
		{
			lock (_SyncRoot)
			{
				if (_Logger != null)
				{
					_Logger.Dispose();
					_Logger = null;
				}
			}
		}
예제 #4
0
		/// <summary>
		/// Associates a logger to this instance.
		/// </summary>
		/// <remarks>If a logger already is associated, it will be disposed.</remarks>
		/// <param name="logger"></param>
		public void StartLogging(WF.Player.Core.Formats.GWL logger)
		{
			lock (_SyncRoot)
			{
				if (_Logger != null)
				{
					DisposeLogger();
				}

				_Logger = logger;
			}
		}