Members on this page
Meshline.Sdk
Meshline.Interactions
RpcRelayRegistry Class
Read-only implementation of the protocol Registry ABI over Neo N3 JSON-RPC.
public sealed class RpcRelayRegistry : Meshline.Interactions.IRelayRegistry
Inheritance System.Object → RpcRelayRegistry
Implements IRelayRegistry
Remarks
Iterator cleanup failures are reported through System.Diagnostics.Trace without replacing the primary query failure.
Constructors
RpcRelayRegistry(HttpClient, RpcRelayRegistryOptions) Constructor
Creates a Registry adapter without registering any DI services or taking ownership of the HTTP client.
public RpcRelayRegistry(System.Net.Http.HttpClient http, Meshline.Interactions.RpcRelayRegistryOptions options);
Parameters
http System.Net.Http.HttpClient
An application-owned HTTP client. Its headers and transport settings apply to RPC calls.
options RpcRelayRegistryOptions
Explicit RPC and trusted network configuration.
Properties
RpcRelayRegistry.Context Property
The network reference and registry contract identifying this Meshline network.
public Meshline.Models.NetworkContext Context { get; }
Implements Context
Property Value
Methods
RpcRelayRegistry.GetRelayAsync(string, CancellationToken) Method
Looks up a relay registration by its canonical relay identifier.
public System.Threading.Tasks.Task<Meshline.Models.Registry.RelayEntry?> GetRelayAsync(string relayId, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
relayId System.String
The relay's canonical lowercase Neo script-hash identifier.
cancellationToken System.Threading.CancellationToken
A token that can cancel the operation.
Implements GetRelayAsync(string, CancellationToken)
Returns
System.Threading.Tasks.Task<RelayEntry>
The matching registry entry, or null if the relay is not registered.
Exceptions
System.OperationCanceledException
The operation observes cancellation of cancellationToken.
RpcRelayRegistry.GetRelaysAsync(CancellationToken) Method
Enumerates the relay registrations available through the registry integration.
public System.Collections.Generic.IAsyncEnumerable<Meshline.Models.Registry.RelayEntry> GetRelaysAsync(System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));
Parameters
cancellationToken System.Threading.CancellationToken
A token that can cancel the operation.
Implements GetRelaysAsync(CancellationToken)
Returns
System.Collections.Generic.IAsyncEnumerable<RelayEntry>
An asynchronous sequence of registry entries; entries may have inactive statuses.
Exceptions
System.OperationCanceledException
The operation observes cancellation of cancellationToken.