Delegate OperationHandler

Namespace
ESRI.Server.SOESupport
Assembly
ESRI.Server.SOESupport.dll

A delegate type that defines the signature for REST operation handler functions.

public delegate byte[] OperationHandler(NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, out string responseProperties)

Parameters

boundVariables NameValueCollection

A collection of the IDs of sub-resources in collection resources (e.g. The bound variable "LayersID" for a collection resource called "Layers" contains the ID of the sub-resource.)

operationInput JsonObject

A JsonObject instance with the input for the operation.

outputFormat string

The requested output format, for example "json".

requestProperties string

Well-known properties of the request.

responseProperties string

Well-known properties for the response.

Returns

byte[]

Constructors

OperationHandler(object, nint)

public OperationHandler(object @object, nint method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(NameValueCollection, JsonObject, string, string, out string, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, out string responseProperties, AsyncCallback callback, object @object)

Parameters

boundVariables NameValueCollection
operationInput JsonObject
outputFormat string
requestProperties string
responseProperties string
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(out string, IAsyncResult)

public virtual byte[] EndInvoke(out string responseProperties, IAsyncResult result)

Parameters

responseProperties string
result IAsyncResult

Returns

byte[]

Invoke(NameValueCollection, JsonObject, string, string, out string)

public virtual byte[] Invoke(NameValueCollection boundVariables, JsonObject operationInput, string outputFormat, string requestProperties, out string responseProperties)

Parameters

boundVariables NameValueCollection
operationInput JsonObject
outputFormat string
requestProperties string
responseProperties string

Returns

byte[]