C# Класс GSF.ServiceModel.SelfHostingService

A base class for web service that can send and receive data over REST (Representational State Transfer) interface.
Наследование: GSF.Adapters.Adapter, ISelfHostingService, IPolicyRetriever
Показать файл Открыть проект

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

Метод Описание
GetFlashPolicy ( ) : Stream

Gets policy stream for Flash applications.

GetSilverlightPolicy ( ) : Stream

Gets policy stream for Silverlight applications.

Initialize ( ) : void

Initializes the web service.

LoadSettings ( ) : void

Loads saved web service settings from the config file if the Adapter.PersistSettings property is set to true.

SaveSettings ( ) : void

Saves web service settings to the config file if the Adapter.PersistSettings property is set to true.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the web service and optionally releases the managed resources.

GetServiceAddress ( ) : string

Gets an address where the ServiceHost will host the service.

GetUnusedPort ( ) : int

Get an unused port number.

InitializeServiceHost ( ) : void

Initializes the ServiceHost.

OnServiceHostCreated ( ) : void

Raises the ServiceHostCreated event.

OnServiceHostStarted ( ) : void

Raises the ServiceHostStarted event.

OnServiceProcessException ( Exception exception ) : void

Raises the ServiceProcessException event.

SelfHostingService ( ) : System

Initializes a new instance of the web service.

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

Метод Описание
StringToStream ( string result ) : Stream

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

Dispose() защищенный Метод

Releases the unmanaged resources used by the web service and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Gets policy stream for Flash applications.
public GetFlashPolicy ( ) : Stream
Результат Stream

GetServiceAddress() защищенный Метод

Gets an address where the ServiceHost will host the service.
protected GetServiceAddress ( ) : string
Результат string

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

Gets policy stream for Silverlight applications.
public GetSilverlightPolicy ( ) : Stream
Результат Stream

GetUnusedPort() защищенный Метод

Get an unused port number.
protected GetUnusedPort ( ) : int
Результат int

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

Initializes the web service.
public Initialize ( ) : void
Результат void

InitializeServiceHost() защищенный Метод

Initializes the ServiceHost.
protected InitializeServiceHost ( ) : void
Результат void

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

Loads saved web service settings from the config file if the Adapter.PersistSettings property is set to true.
public LoadSettings ( ) : void
Результат void

OnServiceHostCreated() защищенный Метод

Raises the ServiceHostCreated event.
protected OnServiceHostCreated ( ) : void
Результат void

OnServiceHostStarted() защищенный Метод

Raises the ServiceHostStarted event.
protected OnServiceHostStarted ( ) : void
Результат void

OnServiceProcessException() защищенный Метод

Raises the ServiceProcessException event.
protected OnServiceProcessException ( Exception exception ) : void
exception System.Exception to sent to event.
Результат void

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

Saves web service settings to the config file if the Adapter.PersistSettings property is set to true.
public SaveSettings ( ) : void
Результат void

SelfHostingService() защищенный Метод

Initializes a new instance of the web service.
protected SelfHostingService ( ) : System
Результат System