Class ServicesManager
Inheritance
System.Object
ServicesManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix
Assembly: Phoenix.Core.dll
Syntax
public class ServicesManager : IDisposable
Properties
View SourceValidateBuild
Gets or sets a value indicating whether or not to validate all services can be built.
Declaration
public static bool ValidateBuild { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ValidateScopes
Gets or sets a value indicating whether or not to validate scoped services never get resolved from the root provider.
Declaration
public static bool ValidateScopes { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
View SourceCreateManager(Action<IServiceCollection>, Action<IServiceProvider>)
Declaration
public static ServicesManager CreateManager(Action<IServiceCollection> serviceDelegate, Action<IServiceProvider> postDelegate = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IServiceCollection> | serviceDelegate | |
System.Action<System.IServiceProvider> | postDelegate |
Returns
Type | Description |
---|---|
ServicesManager |
Dispose()
Declaration
public void Dispose()
ShutdownServices(CancellationToken)
Declaration
public void ShutdownServices(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
StartServices(CancellationToken)
Declaration
public void StartServices(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Implements
System.IDisposable