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 Fabric
Declaration
public FabricHost(FabricRuntime fabricRuntime, IEnumerable<ApplicationHost> applicationHosts)
Parameters
Type | Name | Description |
---|---|---|
Fabric |
fabricRuntime | The fabric runtime. |
System. |
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. |
disposing |
|
Run()
Runs the fabric host.
Declaration
public void Run()
RunAsync()
Runs the application.
Declaration
public async Task RunAsync()
Returns
Type | Description |
---|---|
System. |
Implements
System.IDisposable