C# 클래스 Goedel.Mesh.Mesh

The Mathamatical Mesh persistence store.
파일 보기 프로젝트 열기: hallambaker/Mathematical-Mesh 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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