Table of Contents

Class SystemTimeProvider

Namespace
WorkflowForge.Abstractions
Assembly
WorkflowForge.dll

Default implementation of ISystemTimeProvider that provides real system time. This is the standard implementation used throughout WorkflowForge. Use the singleton Instance property, or inject a custom ISystemTimeProvider for testing.

public sealed class SystemTimeProvider : ISystemTimeProvider
Inheritance
SystemTimeProvider
Implements
Inherited Members

Fields

Instance

Gets the singleton instance of the system time provider.

public static readonly SystemTimeProvider Instance

Field Value

SystemTimeProvider

Properties

Now

Gets the current local date and time.

public DateTimeOffset Now { get; }

Property Value

DateTimeOffset

Today

Gets the current local date with the time component set to midnight.

public DateTimeOffset Today { get; }

Property Value

DateTimeOffset

UtcNow

Gets the current date and time in Coordinated Universal Time (UTC).

public DateTimeOffset UtcNow { get; }

Property Value

DateTimeOffset