C# Class Common.Logging.Simple.NoOpVariablesContext

A null-functionality implementation of IVariablesContext
Inheritance: IVariablesContext
Afficher le fichier Open project: net-commons/common-logging

Méthodes publiques

Méthode Description
Clear ( ) : void

Clears the context variables

Contains ( string key ) : bool

Checks if a variable is set within the context

Get ( string key ) : object

Gets the value of a variable within the context

Remove ( string key ) : void

Removes a variable from the context by key

Set ( string key, object value ) : void

Sets the value of a new or existing variable within the context

Method Details

Clear() public méthode

Clears the context variables
public Clear ( ) : void
Résultat void

Contains() public méthode

Checks if a variable is set within the context
public Contains ( string key ) : bool
key string The key of the variable to check for
Résultat bool

Get() public méthode

Gets the value of a variable within the context
public Get ( string key ) : object
key string The key of the variable to get
Résultat object

Remove() public méthode

Removes a variable from the context by key
public Remove ( string key ) : void
key string The key of the variable to remove
Résultat void

Set() public méthode

Sets the value of a new or existing variable within the context
public Set ( string key, object value ) : void
key string The key of the variable that is to be added
value object The value to add
Résultat void