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
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
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