C# Класс Goedel.Mesh.Mesh

The Mathamatical Mesh persistence store.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Domain string

Открытые методы

Метод Описание
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

Описание методов

AddProfile() публичный Метод

Check the specified personal profile and add it to the mesh.
public AddProfile ( SignedProfile Profile ) : void
Profile SignedProfile The profile to add.
Результат void

CheckAccount() публичный Метод

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
Результат bool

CloseConnectionRequest() публичный Метод

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.
Результат bool

CreateAccount() публичный Метод

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.
Результат bool

GetAccount() публичный Метод

Get Account with the specified identifier.
public GetAccount ( string AccountId ) : Account
AccountId string Identifier to retrieve.
Результат Account

GetChainToken() публичный Метод

Get the current chain token for the mesh store for use in notarized transactions.
public GetChainToken ( ) : string
Результат string

GetPending() публичный Метод

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.
Результат ConnectionsPending

GetPendingRequests() публичный Метод

Get the list of signed pending connection requests.
public GetPendingRequests ( string AccountId ) : List
AccountId string The account to query.
Результат List

GetPersonalProfile() публичный Метод

Get the personal profile with the specified ID.
public GetPersonalProfile ( string ID ) : PersonalProfile
ID string The identifier of the profile to get.
Результат PersonalProfile

GetProfile() публичный Метод

Get a profile with the specified UDF key.
public GetProfile ( string UDF ) : Entry
UDF string Fingerprint of requested profile.
Результат Entry

GetRequestStatus() публичный Метод

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.
Результат SignedConnectionResult

GetSignedPersonalProfile() публичный Метод

Get the signed personal profile with the specified ID.
public GetSignedPersonalProfile ( string ID ) : SignedPersonalProfile
ID string The identifier of the profile to get.
Результат SignedPersonalProfile

Mesh() публичный Метод

Construct a persistence store for the specified domain.
public Mesh ( string Domain ) : System
Domain string Domain name of the service
Результат System

Mesh() публичный Метод

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.
Результат System

PostConnectionRequest() публичный Метод

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.
Результат void

UpdateProfile() публичный Метод

Publish an entry
public UpdateProfile ( Entry Profile ) : void
Profile Entry The profile to publish
Результат void

Описание свойств

Domain публичное свойство

Domain for the store
public string Domain
Результат string