DataProxy

Namespace: WellFired.Guacamole.DataStorage.Data

Implements: WellFired.Guacamole.DataStorage.Data.Synchronization.IDataProxy

Description

Any implementation of this class will have the possibility to have its properties to be synchronized with the stored data of the generic type through the DataAccess. The stored data format must be JSON.

Properties

bool DataChanged { get; set; }

Public Methods

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

protected-func

void SetProperty ( ref TY storage, TY value, string propertyName = @”” )

Breakdown

  • bool DataChanged { get; set; }
  • void InjectData ( string data )

    Description

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

  • 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.

  • void SetProperty< TY > ( ref TY storage, TY value, string propertyName = @”” )