Show / Hide Table of Contents

    Class EventContext

    Class that represents an event context.

    Inheritance
    System.Object
    EventContext
    NotificationContext
    OperationContext
    Implements
    IEventContext
    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 Source

    EventContext(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 Source

    CurrentTime

    Gets the current time.

    Declaration
    public DateTimeOffset CurrentTime { get; }
    Property Value
    Type Description
    System.DateTimeOffset
    | Improve this Doc View Source

    Logger

    Gets a reference to the logger in use.

    Declaration
    public ILogger Logger { get; }
    Property Value
    Type Description
    Serilog.ILogger

    Implements

    IEventContext

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.