Class AbstractApplicationContext
- Namespace
- Steeltoe.Common.Contexts
- Assembly
- Steeltoe.Common.dll
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
serviceProvider
IServiceProvider
configuration
IConfiguration
nameToTypeMappings
IEnumerable<AbstractApplicationContext.NameToTypeMapping>
Properties
Configuration
public IConfiguration Configuration { get; }
Property Value
- IConfiguration
ServiceExpressionResolver
public IServiceExpressionResolver ServiceExpressionResolver { get; set; }
Property Value
- IServiceExpressionResolver
ServiceProvider
public IServiceProvider ServiceProvider { get; }
Property Value
- IServiceProvider
Methods
ContainsService(string)
public bool ContainsService(string name)
Parameters
name
string
Returns
- bool
ContainsService(string, Type)
public bool ContainsService(string name, Type serviceType)
Parameters
name
string
serviceType
Type
Returns
- bool
ContainsService<T>(string)
public bool ContainsService<T>(string name)
Parameters
name
string
Returns
- bool
Type Parameters
T
Deregister(string)
public object Deregister(string name)
Parameters
name
string
Returns
- object
Dispose()
GetService(string)
public object GetService(string name)
Parameters
name
string
Returns
- object
GetService(string, Type)
public object GetService(string name, Type serviceType)
Parameters
name
string
serviceType
Type
Returns
- object
GetService(Type)
public object GetService(Type serviceType)
Parameters
serviceType
Type
Returns
- object
GetService<T>()
Returns
- T
Type Parameters
T
GetService<T>(string)
public T GetService<T>(string name)
Parameters
name
string
Returns
- T
Type Parameters
T
GetServices(Type)
public IEnumerable<object> GetServices(Type serviceType)
Parameters
serviceType
Type
Returns
- IEnumerable<object>
GetServices<T>()
public IEnumerable<T> GetServices<T>()
Returns
- IEnumerable<T>
Type Parameters
T
Register(string, object)
public void Register(string name, object instance)
Parameters
name
string
instance
object
ResolveEmbeddedValue(string)
public string ResolveEmbeddedValue(string value)
Parameters
value
string
Returns
- string