Delegate ResourceHandler

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

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

public delegate byte[] ResourceHandler(NameValueCollection boundVariables, 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.)

outputFormat string

The requested output format, for example "json".

requestProperties string

Well-known properties for the request.

responseProperties string

Well-known properties for the response.

Returns

byte[]

Constructors

ResourceHandler(object, nint)

public ResourceHandler(object @object, nint method)

Parameters

object object
method IntPtr

Methods

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

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

Parameters

boundVariables NameValueCollection
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, string, string, out string)

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

Parameters

boundVariables NameValueCollection
outputFormat string
requestProperties string
responseProperties string

Returns

byte[]