Class RequestMessage.Builder
Allows to build RequestMessage objects.
Inherited Members
Namespace: Gremlin.Net.Driver.Messages
Assembly: Gremlin.Net.dll
Syntax
public class RequestMessage.Builder
Methods
AddArgument(string, object)
Adds and argument to the RequestMessage.
Declaration
public RequestMessage.Builder AddArgument(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the argument. |
object | value | The value of the argument. |
Returns
Type | Description |
---|---|
RequestMessage.Builder |
Create()
Creates the RequestMessage given the settings provided to the RequestMessage.Builder.
Declaration
public RequestMessage Create()
Returns
Type | Description |
---|---|
RequestMessage | The built RequestMessage. |
OverrideRequestId(Guid)
Overrides the request identifier with a specified one, otherwise the RequestMessage.Builder will randomly generate a Guid.
Declaration
public RequestMessage.Builder OverrideRequestId(Guid requestId)
Parameters
Type | Name | Description |
---|---|---|
Guid | requestId | The request identifier to use. |
Returns
Type | Description |
---|---|
RequestMessage.Builder |
Processor(string)
If this value is not set in the builder then the Processor defaults to the standard op processor (empty string).
Declaration
public RequestMessage.Builder Processor(string processor)
Parameters
Type | Name | Description |
---|---|---|
string | processor | The name of the processor. |
Returns
Type | Description |
---|---|
RequestMessage.Builder |