Interface IAmbientServices
Contract interface for ambient services.
Inherited Members
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
System.IServiceProvider.GetService(System.Type)
Namespace: Kephas
Assembly: Kephas.Core.dll
Syntax
public interface IAmbientServices : IExpando, IDynamicMetaObjectProvider, IIndexable, IServiceProvider, IAppServiceInfoProvider
Properties
| Improve this Doc View SourceAppRuntime
Gets the application runtime.
Declaration
IAppRuntime AppRuntime { get; }
Property Value
Type | Description |
---|---|
IAppRuntime | The application runtime. |
AssemblyLoader
Gets the assembly loader.
Declaration
IAssemblyLoader AssemblyLoader { get; }
Property Value
Type | Description |
---|---|
IAssemblyLoader | The assembly loader. |
CompositionContainer
Gets the composition container.
Declaration
ICompositionContext CompositionContainer { get; }
Property Value
Type | Description |
---|---|
ICompositionContext | The composition container. |
ConfigurationStore
Gets the configuration store.
Declaration
IConfigurationStore ConfigurationStore { get; }
Property Value
Type | Description |
---|---|
IConfigurationStore | The configuration store. |
LogManager
Gets the log manager.
Declaration
ILogManager LogManager { get; }
Property Value
Type | Description |
---|---|
ILogManager | The log manager. |
Methods
| Improve this Doc View SourceIsRegistered(Type)
Gets a value indicating whether the service with the provided contract is registered.
Declaration
bool IsRegistered(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType | Type of the service. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Register(Type, Action<IServiceRegistrationBuilder>)
Registers the provided service using a registration builder.
Declaration
IAmbientServices Register(Type serviceType, Action<IServiceRegistrationBuilder> builder)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType | Type of the service. |
System.Action<IServiceRegistrationBuilder> | builder | The builder. |
Returns
Type | Description |
---|---|
IAmbientServices | The IAmbientServices. |