GetCurrentCheckpoint Method

Serilog Sinks AmazonS3

Serilog.Sinks.AmazonS3

RollingIntervalExtensions..::..GetCurrentCheckpoint Method

Gets the current checkpoint.

Namespace:  Serilog.Sinks.AmazonS3
Assembly:  Serilog.Sinks.AmazonS3 (in Serilog.Sinks.AmazonS3.dll)

Syntax


public static Nullable<DateTime> GetCurrentCheckpoint(
	RollingInterval interval,
	DateTime instant
)
Public Shared Function GetCurrentCheckpoint ( _
	interval As RollingInterval, _
	instant As DateTime _
) As Nullable(Of DateTime)
public:
static Nullable<DateTime^> GetCurrentCheckpoint(
	RollingInterval^ interval, 
	DateTime^ instant
)

Parameters

interval
Type: Serilog.Sinks.AmazonS3..::..RollingInterval
The interval.
instant
Type: DateTime
The instant.

Return Value

A [DateTime] value that gives the current checkpoint.

Exceptions


ExceptionCondition
[ArgumentException]Invalid rolling interval