Class ApplicationHost
Provides capabilities to run service hosts in the scope of an application.
Inheritance
System.Object
ApplicationHost
Implements
System.IDisposable
Namespace: Copper.Hosting
Assembly: Copper.Hosting.dll
Syntax
public class ApplicationHost : IDisposable
Constructors
View SourceApplicationHost(IEnumerable<ServiceHost>)
Initializes a new instance of the ApplicationHost class.
Declaration
public ApplicationHost(IEnumerable<ServiceHost> serviceHosts)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ServiceHost> | serviceHosts | The service hosts. |
Methods
View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
|
RunAsync()
Runs the application host.
Declaration
public async Task RunAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
System.IDisposable