C# Class Microsoft.AspNet.Server.Kestrel.Http.DateHeaderValueManager

Manages the generation of the date header value.
Inheritance: IDisposable
ファイルを表示 Open project: Starcounter/KestrelHttpServer Class Usage Examples

Public Methods

Method Description
DateHeaderValueManager ( ) : System

Initializes a new instance of the DateHeaderValueManager class.

Dispose ( ) : void

Releases all resources used by the current instance of DateHeaderValueManager.

GetDateHeaderValue ( ) : string

Returns a value representing the current server date/time for use in the HTTP "Date" response header in accordance with http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18

Private Methods

Method Description
DateHeaderValueManager ( ISystemClock systemClock, System.TimeSpan timeWithoutRequestsUntilIdle, System.TimeSpan timerInterval ) : System
DisposeTimer ( ) : void
PumpTimer ( ) : void
UpdateDateValue ( object state ) : void

Method Details

DateHeaderValueManager() public method

Initializes a new instance of the DateHeaderValueManager class.
public DateHeaderValueManager ( ) : System
return System

Dispose() public method

Releases all resources used by the current instance of DateHeaderValueManager.
public Dispose ( ) : void
return void

GetDateHeaderValue() public method

Returns a value representing the current server date/time for use in the HTTP "Date" response header in accordance with http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18
public GetDateHeaderValue ( ) : string
return string