C# Класс SolarCalculator.SoeBase

Base class cruft for a server object extension
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ConfigProps IPropertySet
ReqHandler IRESTRequestHandler
ServerObjectHelper IServerObjectHelper

Открытые методы

Метод Описание
Construct ( IPropertySet props ) : void

This is where you put any expensive business logic that you don’t need to run on each request. For example, if you know you’re always working with the same layer in the map, you can put the code to get the layer here.

GetSchema ( ) : string

Gets the schema.

HandleRESTRequest ( string capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]

Allows for REST requests and responses to come into the service. These methods create the schema and handle the requests.

Init ( IServerObjectHelper serverObjectHelper ) : void

Initializes and starts the server object specified by the IServerObjectHelper reference. If you have business logic that you want to run when the SOE first becomes enabled, don’t put it in Init() or in your SOE class’s constructor; instead, use the following IObjectConstruct.Construct() method

Shutdown ( ) : void

stops the server object specified by the IServerObjectHelper reference. Cleans up after itself before shutting down its parent mapservice etc.

Описание методов

Construct() публичный Метод

This is where you put any expensive business logic that you don’t need to run on each request. For example, if you know you’re always working with the same layer in the map, you can put the code to get the layer here.
public Construct ( IPropertySet props ) : void
props IPropertySet The props.
Результат void

GetSchema() публичный Метод

Gets the schema.
public GetSchema ( ) : string
Результат string

HandleRESTRequest() публичный Метод

Allows for REST requests and responses to come into the service. These methods create the schema and handle the requests.
public HandleRESTRequest ( string capabilities, string resourceName, string operationName, string operationInput, string outputFormat, string requestProperties, string &responseProperties ) : byte[]
capabilities string The capabilities.
resourceName string Name of the resource.
operationName string Name of the operation.
operationInput string The operation input.
outputFormat string The output format.
requestProperties string The request properties.
responseProperties string The response properties.
Результат byte[]

Init() публичный Метод

Initializes and starts the server object specified by the IServerObjectHelper reference. If you have business logic that you want to run when the SOE first becomes enabled, don’t put it in Init() or in your SOE class’s constructor; instead, use the following IObjectConstruct.Construct() method
public Init ( IServerObjectHelper serverObjectHelper ) : void
serverObjectHelper IServerObjectHelper The server object helper.
Результат void

Shutdown() публичный Метод

stops the server object specified by the IServerObjectHelper reference. Cleans up after itself before shutting down its parent mapservice etc.
public Shutdown ( ) : void
Результат void

Описание свойств

ConfigProps публичное свойство

public IPropertySet ConfigProps
Результат IPropertySet

ReqHandler публичное свойство

public IRESTRequestHandler ReqHandler
Результат IRESTRequestHandler

ServerObjectHelper публичное свойство

public IServerObjectHelper ServerObjectHelper
Результат IServerObjectHelper