IDataProxy

Namespace: WellFired.Guacamole.DataStorage.Data

Description

Classes implementing this interface can be provided to DataAccess to synchronize data between your data proxy and any storage. IDataProxy can be seen as a cached version of the storage data which is synchronized with the storage. For JSON serialization, DataProxy<T> is already provided.

Properties

bool DataChanged { get; set; }

Public Methods

void InjectData ( string data )
string GetData ( )
void ResetDataChanged ( )

Breakdown

  • bool DataChanged { get; set; }

    Description

    Indicate if the data changed since it was loaded in.

  • void InjectData ( string data )

    Description

    Allows to inject serialized data into the data proxy to initialize it.

    Parameters

    data
  • string GetData ( )

    Description

    Allows to get serialized data from the proxy.

  • void ResetDataChanged ( )

    Description

    After calling this method, DataChanged will return until the data from the proxy is modified.