Class InjectProtocolQuery
Rpc query to access protocols injection
Inherited Members
Namespace: Netmavryk.Rpc.Queries.Post
Assembly: Netmavryk.dll
Syntax
public class InjectProtocolQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(Int32, List<Object>, Boolean, Boolean)
Injects a protocol into the node and returns the ID of the protocol
Declaration
public Task<dynamic> PostAsync(int expectedEnvVersion, List<object> components, bool async = false, bool force = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | expectedEnvVersion | Expected environment version |
| List<System.Object> | components | List of components |
| System.Boolean | async | Async (optional) |
| System.Boolean | force | Force (optional) |
Returns
| Type | Description |
|---|---|
| Task<System.Object> |
PostAsync<T>(Int32, List<Object>, Boolean, Boolean)
Injects a protocol into the node and returns the ID of the protocol
Declaration
public Task<T> PostAsync<T>(int expectedEnvVersion, List<object> components, bool async = false, bool force = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | expectedEnvVersion | Expected environment version |
| List<System.Object> | components | List of components |
| System.Boolean | async | Async (optional) |
| System.Boolean | force | Force (optional) |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the object to deserialize to |