C# Class Goedel.Mesh.Mesh

The Mathamatical Mesh persistence store.
Exibir arquivo Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Public Properties

Property Type Description
Domain string

Public Methods

Method Description
AddProfile ( SignedProfile Profile ) : void

Check the specified personal profile and add it to the mesh.

CheckAccount ( string AccountID ) : bool

Test to see if an account name is available. Note that a subsequence CreateAccount request can fail even if a previous call to CheckAccount succeeded as the account name may have been issued in the interim or may fail for other reasons.

CloseConnectionRequest ( string AccountId, SignedConnectionResult SignedResult ) : bool

Close a connection request.

CreateAccount ( string AccountID, SignedProfile Profile ) : bool

Create an account with the specified account name and profile.

The profile is validated for consistency and rejected if validation fails.

The new account is registered in the Portal log under AccountName@Domain as the unique identifier. The profile is registered in the mesh under the

GetAccount ( string AccountId ) : Account

Get Account with the specified identifier.

GetChainToken ( ) : string

Get the current chain token for the mesh store for use in notarized transactions.

GetPending ( Account Account ) : ConnectionsPending

Get the list of connections pending on an account.

GetPendingRequests ( string AccountId ) : List

Get the list of signed pending connection requests.

GetPersonalProfile ( string ID ) : PersonalProfile

Get the personal profile with the specified ID.

GetProfile ( string UDF ) : Entry

Get a profile with the specified UDF key.

GetRequestStatus ( string AccountId, string DeviceUDF ) : SignedConnectionResult

Get the status of a pending connection request.

GetSignedPersonalProfile ( string ID ) : SignedPersonalProfile

Get the signed personal profile with the specified ID.

Mesh ( string Domain ) : System

Construct a persistence store for the specified domain.

Mesh ( string Domain, string Store, string Portal ) : System

Construct a persistence store for the specified domain, with the specified store and portal stores.

PostConnectionRequest ( SignedConnectionRequest SignedConnectionRequest, string AccountId ) : void

Post a new connection request to the specified account.

UpdateProfile ( Entry Profile ) : void

Publish an entry

Method Details

AddProfile() public method

Check the specified personal profile and add it to the mesh.
public AddProfile ( SignedProfile Profile ) : void
Profile SignedProfile The profile to add.
return void

CheckAccount() public method

Test to see if an account name is available. Note that a subsequence CreateAccount request can fail even if a previous call to CheckAccount succeeded as the account name may have been issued in the interim or may fail for other reasons.
public CheckAccount ( string AccountID ) : bool
AccountID string The requested account name
return bool

CloseConnectionRequest() public method

Close a connection request.
public CloseConnectionRequest ( string AccountId, SignedConnectionResult SignedResult ) : bool
AccountId string The account identifier to close the request on.
SignedResult SignedConnectionResult The status to be posted to the close.
return bool

CreateAccount() public method

Create an account with the specified account name and profile.

The profile is validated for consistency and rejected if validation fails.

The new account is registered in the Portal log under AccountName@Domain as the unique identifier. The profile is registered in the mesh under the

public CreateAccount ( string AccountID, SignedProfile Profile ) : bool
AccountID string The requested account name.
Profile SignedProfile A signed Personal Profile.
return bool

GetAccount() public method

Get Account with the specified identifier.
public GetAccount ( string AccountId ) : Account
AccountId string Identifier to retrieve.
return Account

GetChainToken() public method

Get the current chain token for the mesh store for use in notarized transactions.
public GetChainToken ( ) : string
return string

GetPending() public method

Get the list of connections pending on an account.
public GetPending ( Account Account ) : ConnectionsPending
Account Account The account identifier to get the connections pending for.
return ConnectionsPending

GetPendingRequests() public method

Get the list of signed pending connection requests.
public GetPendingRequests ( string AccountId ) : List
AccountId string The account to query.
return List

GetPersonalProfile() public method

Get the personal profile with the specified ID.
public GetPersonalProfile ( string ID ) : PersonalProfile
ID string The identifier of the profile to get.
return PersonalProfile

GetProfile() public method

Get a profile with the specified UDF key.
public GetProfile ( string UDF ) : Entry
UDF string Fingerprint of requested profile.
return Entry

GetRequestStatus() public method

Get the status of a pending connection request.
public GetRequestStatus ( string AccountId, string DeviceUDF ) : SignedConnectionResult
AccountId string The account to query.
DeviceUDF string The device that is attempting to connect.
return SignedConnectionResult

GetSignedPersonalProfile() public method

Get the signed personal profile with the specified ID.
public GetSignedPersonalProfile ( string ID ) : SignedPersonalProfile
ID string The identifier of the profile to get.
return SignedPersonalProfile

Mesh() public method

Construct a persistence store for the specified domain.
public Mesh ( string Domain ) : System
Domain string Domain name of the service
return System

Mesh() public method

Construct a persistence store for the specified domain, with the specified store and portal stores.
public Mesh ( string Domain, string Store, string Portal ) : System
Domain string Domain name of the service
Store string store name for the profile persistence store.
Portal string Store name for the portal persistence store.
return System

PostConnectionRequest() public method

Post a new connection request to the specified account.
public PostConnectionRequest ( SignedConnectionRequest SignedConnectionRequest, string AccountId ) : void
SignedConnectionRequest SignedConnectionRequest The request to post
AccountId string The account to post it to.
return void

UpdateProfile() public method

Publish an entry
public UpdateProfile ( Entry Profile ) : void
Profile Entry The profile to publish
return void

Property Details

Domain public_oe property

Domain for the store
public string Domain
return string