C# Class Zetbox.Server.Wcf.WcfServer

Inheritance: System.MarshalByRefObject, IZetboxAppDomain, IService, IDisposable
Afficher le fichier Open project: daszat/zetbox

Méthodes publiques

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

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Start() public méthode

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

Stop() public méthode

Stops the WCF Server.
public Stop ( ) : void
Résultat void

WcfServer() public méthode

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
Résultat System