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
boundVariablesNameValueCollectionA 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.)
outputFormatstringThe requested output format, for example "json".
requestPropertiesstringWell-known properties for the request.
responsePropertiesstringWell-known properties for the response.
Returns
- byte[]
Constructors
ResourceHandler(object, nint)
public ResourceHandler(object @object, nint method)
Parameters
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
boundVariablesNameValueCollectionoutputFormatstringrequestPropertiesstringresponsePropertiesstringcallbackAsyncCallbackobjectobject
Returns
EndInvoke(out string, IAsyncResult)
public virtual byte[] EndInvoke(out string responseProperties, IAsyncResult result)
Parameters
responsePropertiesstringresultIAsyncResult
Returns
- byte[]
Invoke(NameValueCollection, string, string, out string)
public virtual byte[] Invoke(NameValueCollection boundVariables, string outputFormat, string requestProperties, out string responseProperties)
Parameters
boundVariablesNameValueCollectionoutputFormatstringrequestPropertiesstringresponsePropertiesstring
Returns
- byte[]