C# 클래스 SolarCalculator.SoeBase

Base class cruft for a server object extension
파일 보기 프로젝트 열기: steveoh/SolarCalculator

공개 프로퍼티들

프로퍼티 타입 설명
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