C# Класс Appcelerator.ServiceManager

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
HandleRequest ( Message request, Message response, System.Web.SessionState.HttpSessionState session, HttpResponse httpresponse ) : void

Invokes the appropriate handler for a given request

ParseIncomingMessages ( HttpContext context, ServiceBroker broker, RequestDetails details, String content_type ) : List

Parses incoming messages and returns a list to be dispatched

RegisterServiceHandlers ( ) : void

Finds and initializes service handlers (methods with a ServiceAttribute defined)

ServiceManager ( ) : System

Initializes the service manager, loads assemblies from the deploy dir and adds a file system watcher to load new assemblies upon their creation

Приватные методы

Метод Описание
LoadServiceHandlerAssemblies ( ) : void

Loads all assemblies in the deploy directory

LoadSingleAssembly ( String file_location ) : void

Loads a single assembly given its full path

RegisterServicesFromAssembly ( Assembly assy ) : void
fsw_Created ( object sender, FileSystemEventArgs e ) : void

Handles the file created event in the deploy dir so we can load assemblies

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

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

Invokes the appropriate handler for a given request
public HandleRequest ( Message request, Message response, System.Web.SessionState.HttpSessionState session, HttpResponse httpresponse ) : void
request Message The ServiceRequest object corresponding to the incoming request
response Message The ServiceResponse object corresponding to the outgoing response
session System.Web.SessionState.HttpSessionState
httpresponse System.Web.HttpResponse
Результат void

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

Parses incoming messages and returns a list to be dispatched
public ParseIncomingMessages ( HttpContext context, ServiceBroker broker, RequestDetails details, String content_type ) : List
context System.Web.HttpContext The HttpContext of the request
broker ServiceBroker The ServiceBroker handling the request
details RequestDetails The RequestDetails from the request
content_type String
Результат List

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

Finds and initializes service handlers (methods with a ServiceAttribute defined)
public RegisterServiceHandlers ( ) : void
Результат void

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

Initializes the service manager, loads assemblies from the deploy dir and adds a file system watcher to load new assemblies upon their creation
public ServiceManager ( ) : System
Результат System