C# Class org.GraphDefined.Vanaheimr.Hermod.HTTP.HTTPLogger.HTTPClientRequestLogger

A wrapper class to manage HTTP API event subscriptions for logging purposes.
Mostrar archivo Open project: Vanaheimr/Hermod

Public Methods

Method Description
HTTPClientRequestLogger ( String Context, String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : System

Create a new log event for the linked HTTP API event.

IsSubscribed ( LogTargets LogTarget ) : System.Boolean

Return the subscription status of the given log target.

RegisterLogTarget ( LogTargets LogTarget, HTTPRequestLoggerDelegate HTTPRequestDelegate ) : HTTPClientRequestLogger

Register the given log target and delegate combination.

Subscribe ( LogTargets LogTarget ) : System.Boolean

Subscribe the given log target to the linked event.

Unsubscribe ( LogTargets LogTarget ) : System.Boolean

Unsubscribe the given log target from the linked event.

Method Details

HTTPClientRequestLogger() public method

Create a new log event for the linked HTTP API event.
public HTTPClientRequestLogger ( String Context, String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : System
Context String The context of the event.
LogEventName String The name of the event.
SubscribeToEventDelegate Action A delegate for subscribing to the linked event.
UnsubscribeFromEventDelegate Action A delegate for subscribing from the linked event.
return System

IsSubscribed() public method

Return the subscription status of the given log target.
public IsSubscribed ( LogTargets LogTarget ) : System.Boolean
LogTarget LogTargets A log target.
return System.Boolean

RegisterLogTarget() public method

Register the given log target and delegate combination.
public RegisterLogTarget ( LogTargets LogTarget, HTTPRequestLoggerDelegate HTTPRequestDelegate ) : HTTPClientRequestLogger
LogTarget LogTargets A log target.
HTTPRequestDelegate HTTPRequestLoggerDelegate A delegate to call.
return HTTPClientRequestLogger

Subscribe() public method

Subscribe the given log target to the linked event.
public Subscribe ( LogTargets LogTarget ) : System.Boolean
LogTarget LogTargets A log target.
return System.Boolean

Unsubscribe() public method

Unsubscribe the given log target from the linked event.
public Unsubscribe ( LogTargets LogTarget ) : System.Boolean
LogTarget LogTargets A log target.
return System.Boolean