Ejemplo n.º 1
0
 /// <summary>
 /// Sets the <see cref="Output"/>.
 /// </summary>
 /// <param name="output">Can not be null.</param>
 protected void SetOutput(ActivityLoggerOutput output)
 {
     if (output == null)
     {
         throw new ArgumentNullException("output");
     }
     _output = output;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new <see cref="ActivityLogger"/> with a specific <see cref="Output"/> or null
 /// to postpone the setting of Output by using <see cref="SetOutput"/>.
 /// </summary>
 /// <param name="output">The output to use. Can be null.</param>
 protected ActivityLogger(ActivityLoggerOutput output)
 {
     _output = output;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new <see cref="ActivityLogger"/> with a <see cref="ActivityLoggerOutput"/> as its <see cref="Output"/>.
 /// </summary>
 public ActivityLogger()
 {
     _output = new ActivityLoggerOutput(this);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new <see cref="ActivityLogger"/> with a specific <see cref="Output"/> or null
 /// to postpone the setting of Output by using <see cref="SetOutput"/>.
 /// </summary>
 /// <param name="output">The output to use. Can be null.</param>
 protected ActivityLogger( ActivityLoggerOutput output )
 {
     _output = output;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initializes a new <see cref="ActivityLogger"/> with a <see cref="ActivityLoggerOutput"/> as its <see cref="Output"/>.
 /// </summary>
 public ActivityLogger()
 {
     _output = new ActivityLoggerOutput( this );
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the <see cref="Output"/>.
 /// </summary>
 /// <param name="output">Can not be null.</param>
 protected void SetOutput( ActivityLoggerOutput output )
 {
     if( output == null ) throw new ArgumentNullException( "output" );
     _output = output;
 }