src/Foundation/Common/Gimela.Common.Logging/LogFactory.cs
/// <summary>
/// Assigns log factory being used.
/// </summary>
/// <param name="logFactory">The log factory.</param>
/// <exception cref="InvalidOperationException">A factory has already been assigned.</exception>
Assigns log factory being used.
Assigns log factory being used .
public static void Assign(ILogFactory logFactory)
    {
      if (logFactory == _factory)
        return;
      if (_isAssigned)
        throw new InvalidOperationException("A log factory has already been assigned.");
      _isAssigned = true;
      _factory = logFactory;
    }
public static void Assign ( ILogFactory logFactory ) { if ( logFactory == _factory ) return ; if ( _isAssigned ) throw new InvalidOperationException ( " " ) ; _isAssigned = true ; _factory = logFactory ; }
Assigns log factory being used.
Assigns log factory being used .
A factory has already been assigned.
A factory has already been assigned .
logFactory
ILogFactory
The log factory.
The log factory .