C# Class Goedel.Mesh.Mesh

The Mathamatical Mesh persistence store.
Afficher le fichier Open project: hallambaker/Mathematical-Mesh Class Usage Examples

Méthodes publiques

Свойство Type Description
Domain string

Méthodes publiques

Méthode 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 méthode

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

CheckAccount() public méthode

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
Résultat bool

CloseConnectionRequest() public méthode

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.
Résultat bool

CreateAccount() public méthode

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.
Résultat bool

GetAccount() public méthode

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

GetChainToken() public méthode

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

GetPending() public méthode

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.
Résultat ConnectionsPending

GetPendingRequests() public méthode

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

GetPersonalProfile() public méthode

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

GetProfile() public méthode

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

GetRequestStatus() public méthode

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.
Résultat SignedConnectionResult

GetSignedPersonalProfile() public méthode

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

Mesh() public méthode

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

Mesh() public méthode

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.
Résultat System

PostConnectionRequest() public méthode

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.
Résultat void

UpdateProfile() public méthode

Publish an entry
public UpdateProfile ( Entry Profile ) : void
Profile Entry The profile to publish
Résultat void

Property Details

Domain public_oe property

Domain for the store
public string Domain
Résultat string