Interface IMirrorGrpcContext
A MirrorGrpcClient instance’s configuration.
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public interface IMirrorGrpcContext
Remarks
This interface exposes the current configuration context for a
MirrorGrpcClient instance. When accessed through a
Configure(Action<IMirrorGrpcContext>),
Clone(Action<IMirrorGrpcContext>?) or one of the
network request methods, calling code can interrogate the
object for configuration details and update as necessary.
Typically, the bare minimum that must be configured in a
context in order to access the mirror network is the URL
of a mirror node server Uri.
The other default values are typically suitable for most
interactions with the mirror network.
Properties
| Edit this page View SourceOnSendingRequest
Called by the library just before the serialized protobuf
is sent to the Mirror Node. This is the only exposure
the library provides to the underlying protobuf implementation
(although they are publicly available in the library).
This method can be useful for logging and tracking purposes.
It could also be used in advanced scenarios to modify the
protobuf message just before sending.
Declaration
Action<IMessage>? OnSendingRequest { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<IMessage> |
Uri
gRPC URI identifying a mirror node for access to the Hedera Mirror Network.
Declaration
Uri Uri { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
Methods
| Edit this page View SourceReset(string)
Clears a property on the context. This is the only way to clear
a property value on the context so that a parent value can be
used instead. Setting a value to
null
does not clear the value, it sets it to
null
for the current context and child contexts.
Declaration
void Reset(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
. We suggest using the
operator to ensure type safety. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
is provided. |