C# Класс Zetbox.Server.Wcf.WcfServer

Наследование: System.MarshalByRefObject, IZetboxAppDomain, IService, IDisposable
Показать файл Открыть проект

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

Метод Описание
Dispose ( ) : void
Start ( ) : void
Start ( ZetboxConfig config ) : void

Starts the WCF Server in the background. If the server hasn't started successfully within 40 seconds, it is aborted and an InvalidOperationException is thrown.

Stop ( ) : void

Stops the WCF Server.

WcfServer ( Autofac.Integration.Wcf.AutofacServiceHostFactory factory, Autofac.Integration.Wcf.AutofacWebServiceHostFactory webFactory, ZetboxConfig config ) : System

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

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

Executes the actual WcfHost in a separate thread and waits until shutdown.

host_Closed ( object sender, EventArgs e ) : void
host_Faulted ( object sender, EventArgs e ) : void
host_Opened ( object sender, EventArgs e ) : void
host_UnknownMessageReceived ( object sender, System.ServiceModel.UnknownMessageReceivedEventArgs e ) : void

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

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

public Dispose ( ) : void
Результат void

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

public Start ( ) : void
Результат void

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

Starts the WCF Server in the background. If the server hasn't started successfully within 40 seconds, it is aborted and an InvalidOperationException is thrown.
public Start ( ZetboxConfig config ) : void
config Zetbox.API.Configuration.ZetboxConfig the loaded configuration for the Server
Результат void

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

Stops the WCF Server.
public Stop ( ) : void
Результат void

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

public WcfServer ( Autofac.Integration.Wcf.AutofacServiceHostFactory factory, Autofac.Integration.Wcf.AutofacWebServiceHostFactory webFactory, ZetboxConfig config ) : System
factory Autofac.Integration.Wcf.AutofacServiceHostFactory
webFactory Autofac.Integration.Wcf.AutofacWebServiceHostFactory
config Zetbox.API.Configuration.ZetboxConfig
Результат System