Class FabricHost
Provides capabilities to run applications.
Inheritance
System.Object
FabricHost
Implements
System.IDisposable
Namespace: Copper.Hosting
Assembly: Copper.Hosting.dll
Syntax
public class FabricHost : IDisposable
Constructors
View SourceFabricHost(FabricRuntime, IEnumerable<ApplicationHost>)
Initializes a new instance of the FabricHost class.
Declaration
public FabricHost(FabricRuntime fabricRuntime, IEnumerable<ApplicationHost> applicationHosts)
Parameters
Type | Name | Description |
---|---|---|
FabricRuntime | fabricRuntime | The fabric runtime. |
System.Collections.Generic.IEnumerable<ApplicationHost> | applicationHosts | The application 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 |
|
Run()
Runs the fabric host.
Declaration
public void Run()
RunAsync()
Runs the application.
Declaration
public async Task RunAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Implements
System.IDisposable