C# Class Cedar.Core.ApplicationContexts.ContextLocator

Define the context locator.
Inheritance: IContextLocator
Afficher le fichier Open project: Chinaccn/surfboard

Méthodes publiques

Méthode Description
AttachContext ( ContextItemCollection context, ContextAttachBehavior behavior ) : void

Attach a new context item collection to the current context.

Clear ( ) : void

Clear the current context item collection.

ContextItemExits ( string key ) : bool

Check if the context item of the given key exists.

GetContextItem ( string key ) : ContextItem

Get an existing context item by given key.

GetCurrentContext ( ) : ContextItemCollection

Get all current context item collection.

SetContextItem ( ContextItem contextItem ) : void

Add a new context item or use the new context item to override the exiting one.

Méthodes protégées

Méthode Description
SetContextItemCore ( ContextItem contextItem ) : void

Set context item inernally.

Private Methods

Méthode Description
EnsureCanWrite ( ContextItem contextItem ) : void

Method Details

AttachContext() public méthode

Attach a new context item collection to the current context.
public AttachContext ( ContextItemCollection context, ContextAttachBehavior behavior ) : void
context ContextItemCollection The to attach.
behavior ContextAttachBehavior The .
Résultat void

Clear() public abstract méthode

Clear the current context item collection.
public abstract Clear ( ) : void
Résultat void

ContextItemExits() public abstract méthode

Check if the context item of the given key exists.
public abstract ContextItemExits ( string key ) : bool
key string The key of the .
Résultat bool

GetContextItem() public abstract méthode

Get an existing context item by given key.
public abstract GetContextItem ( string key ) : ContextItem
key string The key of the to get.
Résultat ContextItem

GetCurrentContext() public abstract méthode

Get all current context item collection.
public abstract GetCurrentContext ( ) : ContextItemCollection
Résultat ContextItemCollection

SetContextItem() public méthode

Add a new context item or use the new context item to override the exiting one.
public SetContextItem ( ContextItem contextItem ) : void
contextItem ContextItem The new to set.
Résultat void

SetContextItemCore() protected abstract méthode

Set context item inernally.
protected abstract SetContextItemCore ( ContextItem contextItem ) : void
contextItem ContextItem The context item.
Résultat void