C# Class Zetbox.Server.Wcf.WcfServer

Inheritance: System.MarshalByRefObject, IZetboxAppDomain, IService, IDisposable
Mostrar archivo Open project: daszat/zetbox

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Start() public method

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
return void

Stop() public method

Stops the WCF Server.
public Stop ( ) : void
return void

WcfServer() public method

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
return System