Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader Class Reference

The abstract class responsible for persisting details to Isolated Storage. More...

Inheritance diagram for PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader:
PushTechnology.DiffusionCore.Connection.ServerDetailsLoader

Public Member Functions

bool PreferenceFileExists ()
 Determines whether the preferences file already exists. More...
 
void Load ()
 Responsible for loading details from Isolated Storage. More...
 
void Save ()
 Responsible for persisting details to Isolated Storage. More...
 

Static Public Member Functions

static void ClearAll (string prefix)
 Clears all isolated storage information for the given application; relies on each file containing a certain prefix, i.e. 'ExternalClient'. More...
 

Protected Member Functions

 BaseDetailsLoader (string fileName)
 Constructor. More...
 
virtual void CreateInitialDetails (IFormatter formatter, Stream stream)
 Override this method to create some initial details so they can be persisted to Isolated Storage. More...
 
virtual void DeserializeDetails (IFormatter formatter, Stream stream)
 Override this method to deserialize the details from Isolated Storage. More...
 
virtual void SerializeDetails (IFormatter formatter, Stream stream)
 Override this method to serialize the details to Isolated Storage. More...
 

Properties

string Filename [get, set]
 Get/set the name of the file to use in Isolated Storage. More...
 

Detailed Description

The abstract class responsible for persisting details to Isolated Storage.

Constructor & Destructor Documentation

PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.BaseDetailsLoader ( string  fileName)
protected

Constructor.

Parameters
fileName

Member Function Documentation

static void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.ClearAll ( string  prefix)
static

Clears all isolated storage information for the given application; relies on each file containing a certain prefix, i.e. 'ExternalClient'.

virtual void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.CreateInitialDetails ( IFormatter  formatter,
Stream  stream 
)
protectedvirtual

Override this method to create some initial details so they can be persisted to Isolated Storage.

Parameters
formatter
stream

Reimplemented in PushTechnology.DiffusionCore.Connection.ServerDetailsLoader.

virtual void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.DeserializeDetails ( IFormatter  formatter,
Stream  stream 
)
protectedvirtual

Override this method to deserialize the details from Isolated Storage.

Parameters
formatter
stream

Reimplemented in PushTechnology.DiffusionCore.Connection.ServerDetailsLoader.

void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.Load ( )

Responsible for loading details from Isolated Storage.

bool PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.PreferenceFileExists ( )

Determines whether the preferences file already exists.

Returns
void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.Save ( )

Responsible for persisting details to Isolated Storage.

virtual void PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.SerializeDetails ( IFormatter  formatter,
Stream  stream 
)
protectedvirtual

Override this method to serialize the details to Isolated Storage.

Parameters
formatter
stream

Reimplemented in PushTechnology.DiffusionCore.Connection.ServerDetailsLoader.

Property Documentation

string PushTechnology.DiffusionCore.Persistence.BaseDetailsLoader.Filename
getsetprotected

Get/set the name of the file to use in Isolated Storage.