Class AbstractApplicationContext
public abstract class AbstractApplicationContext : IApplicationContext, IDisposable
- Inheritance
-
AbstractApplicationContext
- Implements
- Derived
- Inherited Members
Constructors
AbstractApplicationContext(IServiceProvider, IConfiguration, IEnumerable<NameToTypeMapping>)
protected AbstractApplicationContext(IServiceProvider serviceProvider, IConfiguration configuration, IEnumerable<AbstractApplicationContext.NameToTypeMapping> nameToTypeMappings)
Parameters
serviceProviderIServiceProviderconfigurationIConfigurationnameToTypeMappingsIEnumerable<AbstractApplicationContext.NameToTypeMapping>
Properties
Configuration
public IConfiguration Configuration { get; }
Property Value
ServiceExpressionResolver
public IServiceExpressionResolver ServiceExpressionResolver { get; set; }
Property Value
ServiceProvider
public IServiceProvider ServiceProvider { get; }
Property Value
Methods
ContainsService(string)
public bool ContainsService(string name)
Parameters
namestring
Returns
ContainsService(string, Type)
public bool ContainsService(string name, Type serviceType)
Parameters
Returns
ContainsService<T>(string)
public bool ContainsService<T>(string name)
Parameters
namestring
Returns
Type Parameters
T
Deregister(string)
public object Deregister(string name)
Parameters
namestring
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetService(string)
public object GetService(string name)
Parameters
namestring
Returns
GetService(string, Type)
public object GetService(string name, Type serviceType)
Parameters
Returns
GetService(Type)
public object GetService(Type serviceType)
Parameters
serviceTypeType
Returns
GetService<T>()
public T GetService<T>()
Returns
- T
Type Parameters
T
GetService<T>(string)
public T GetService<T>(string name)
Parameters
namestring
Returns
- T
Type Parameters
T
GetServices(Type)
public IEnumerable<object> GetServices(Type serviceType)
Parameters
serviceTypeType
Returns
GetServices<T>()
public IEnumerable<T> GetServices<T>()
Returns
- IEnumerable<T>
Type Parameters
T
Register(string, object)
public void Register(string name, object instance)
Parameters
ResolveEmbeddedValue(string)
public string ResolveEmbeddedValue(string value)
Parameters
valuestring