C# Class Caliburn.Micro.PhoneStateStorageMechanism

Stores data in the phone state.
Inheritance: IStorageMechanism
Afficher le fichier Open project: bryanhunter/CaliburnMicroTalk

Méthodes publiques

Méthode Description
BeginStoring ( ) : void

Begins the storage transaction.

ClearLastSession ( ) : void

Clears the data stored in the last storage transaction.

Delete ( string key ) : void

Deletes the data with the specified key.

EndStoring ( ) : void

Ends the storage transaction.

PhoneStateStorageMechanism ( IPhoneContainer container, IPhoneService phoneService ) : System

Initializes a new instance of the PhoneStateStorageMechanism class.

RegisterSingleton ( Type service, string key, Type implementation ) : void

Registers service with the storage mechanism as a singleton.

Store ( string key, object data ) : void

Stores the value with the specified key.

Supports ( StorageMode mode ) : bool

Indicates what storage modes this mechanism provides.

TryGet ( string key, object &value ) : bool

Tries to get the data previously stored with the specified key.

Method Details

BeginStoring() public méthode

Begins the storage transaction.
public BeginStoring ( ) : void
Résultat void

ClearLastSession() public méthode

Clears the data stored in the last storage transaction.
public ClearLastSession ( ) : void
Résultat void

Delete() public méthode

Deletes the data with the specified key.
public Delete ( string key ) : void
key string The key.
Résultat void

EndStoring() public méthode

Ends the storage transaction.
public EndStoring ( ) : void
Résultat void

PhoneStateStorageMechanism() public méthode

Initializes a new instance of the PhoneStateStorageMechanism class.
public PhoneStateStorageMechanism ( IPhoneContainer container, IPhoneService phoneService ) : System
container IPhoneContainer The container.
phoneService IPhoneService The phone service.
Résultat System

RegisterSingleton() public méthode

Registers service with the storage mechanism as a singleton.
public RegisterSingleton ( Type service, string key, Type implementation ) : void
service System.Type The service.
key string The key.
implementation System.Type The implementation.
Résultat void

Store() public méthode

Stores the value with the specified key.
public Store ( string key, object data ) : void
key string The key.
data object The data.
Résultat void

Supports() public méthode

Indicates what storage modes this mechanism provides.
public Supports ( StorageMode mode ) : bool
mode StorageMode The storage mode to check.
Résultat bool

TryGet() public méthode

Tries to get the data previously stored with the specified key.
public TryGet ( string key, object &value ) : bool
key string The key.
value object The value.
Résultat bool