C# Class GSF.ServiceModel.SelfHostingService

A base class for web service that can send and receive data over REST (Representational State Transfer) interface.
Inheritance: GSF.Adapters.Adapter, ISelfHostingService, IPolicyRetriever
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
StringToStream ( string result ) : Stream

Method Details

Dispose() protected méthode

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.
Résultat void

GetFlashPolicy() public méthode

Gets policy stream for Flash applications.
public GetFlashPolicy ( ) : Stream
Résultat Stream

GetServiceAddress() protected méthode

Gets an address where the ServiceHost will host the service.
protected GetServiceAddress ( ) : string
Résultat string

GetSilverlightPolicy() public méthode

Gets policy stream for Silverlight applications.
public GetSilverlightPolicy ( ) : Stream
Résultat Stream

GetUnusedPort() protected méthode

Get an unused port number.
protected GetUnusedPort ( ) : int
Résultat int

Initialize() public méthode

Initializes the web service.
public Initialize ( ) : void
Résultat void

InitializeServiceHost() protected méthode

Initializes the ServiceHost.
protected InitializeServiceHost ( ) : void
Résultat void

LoadSettings() public méthode

Loads saved web service settings from the config file if the Adapter.PersistSettings property is set to true.
public LoadSettings ( ) : void
Résultat void

OnServiceHostCreated() protected méthode

Raises the ServiceHostCreated event.
protected OnServiceHostCreated ( ) : void
Résultat void

OnServiceHostStarted() protected méthode

Raises the ServiceHostStarted event.
protected OnServiceHostStarted ( ) : void
Résultat void

OnServiceProcessException() protected méthode

Raises the ServiceProcessException event.
protected OnServiceProcessException ( Exception exception ) : void
exception System.Exception to sent to event.
Résultat void

SaveSettings() public méthode

Saves web service settings to the config file if the Adapter.PersistSettings property is set to true.
public SaveSettings ( ) : void
Résultat void

SelfHostingService() protected méthode

Initializes a new instance of the web service.
protected SelfHostingService ( ) : System
Résultat System