Class EventContext
Class that represents an event context.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Scheduling
Assembly: Fibula.Scheduling.dll
Syntax
public class EventContext : IEventContext
Constructors
| Improve this Doc View SourceEventContext(ILogger, Func<DateTimeOffset>)
Initializes a new instance of the EventContext class.
Declaration
public EventContext(ILogger logger, Func<DateTimeOffset> currentTimeFunc)
Parameters
Type | Name | Description |
---|---|---|
Serilog.ILogger | logger | A reference to the logger in use. |
System.Func<System.DateTimeOffset> | currentTimeFunc | A functiont to get the current time. |
Properties
| Improve this Doc View SourceCurrentTime
Gets the current time.
Declaration
public DateTimeOffset CurrentTime { get; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Logger
Gets a reference to the logger in use.
Declaration
public ILogger Logger { get; }
Property Value
Type | Description |
---|---|
Serilog.ILogger |