Show / Hide Table of Contents

Interface IAmbientServices

Contract interface for ambient services.

Inherited Members
IExpando.HasDynamicMember(String)
IExpando.ToDictionary(Func<String, String>, Func<Object, Object>)
System.Dynamic.IDynamicMetaObjectProvider.GetMetaObject(System.Linq.Expressions.Expression)
IIndexable.Item[String]
System.IServiceProvider.GetService(System.Type)
IAppServiceInfoProvider.GetAppServiceInfos(IList<Type>, ICompositionRegistrationContext)
Namespace: Kephas
Assembly: Kephas.Core.dll
Syntax
public interface IAmbientServices : IExpando, IDynamicMetaObjectProvider, IIndexable, IServiceProvider, IAppServiceInfoProvider

Properties

| Improve this Doc View Source

AppRuntime

Gets the application runtime.

Declaration
IAppRuntime AppRuntime { get; }
Property Value
Type Description
IAppRuntime

The application runtime.

| Improve this Doc View Source

AssemblyLoader

Gets the assembly loader.

Declaration
IAssemblyLoader AssemblyLoader { get; }
Property Value
Type Description
IAssemblyLoader

The assembly loader.

| Improve this Doc View Source

CompositionContainer

Gets the composition container.

Declaration
ICompositionContext CompositionContainer { get; }
Property Value
Type Description
ICompositionContext

The composition container.

| Improve this Doc View Source

ConfigurationStore

Gets the configuration store.

Declaration
IConfigurationStore ConfigurationStore { get; }
Property Value
Type Description
IConfigurationStore

The configuration store.

| Improve this Doc View Source

LogManager

Gets the log manager.

Declaration
ILogManager LogManager { get; }
Property Value
Type Description
ILogManager

The log manager.

Methods

| Improve this Doc View Source

IsRegistered(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

true if the service is registered, false if not.

| Improve this Doc View Source

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.

Extension Methods

AmbientServicesExtensions.GetLogger(IAmbientServices, String)
AmbientServicesExtensions.GetLogger(IAmbientServices, Type)
AmbientServicesExtensions.GetLogger<T>(IAmbientServices)
AmbientServicesExtensions.Register<TService>(IAmbientServices, Action<IServiceRegistrationBuilder>)
AmbientServicesExtensions.Register<TService>(IAmbientServices, TService)
AmbientServicesExtensions.Register<TService, TServiceImplementation>(IAmbientServices)
AmbientServicesExtensions.RegisterTransient<TService, TServiceImplementation>(IAmbientServices)
AmbientServicesExtensions.Register<TService>(IAmbientServices, Func<TService>)
AmbientServicesExtensions.RegisterTransient<TService>(IAmbientServices, Func<TService>)
AmbientServicesExtensions.Register(IAmbientServices, Type, Func<Object>)
AmbientServicesExtensions.RegisterTransient(IAmbientServices, Type, Func<Object>)
AmbientServicesExtensions.Register(IAmbientServices, Type, Object)
AmbientServicesExtensions.Register(IAmbientServices, Type, Type)
AmbientServicesExtensions.RegisterTransient(IAmbientServices, Type, Type)
AmbientServicesExtensions.GetService<TService>(IServiceProvider)
AmbientServicesExtensions.GetRequiredService(IServiceProvider, Type)
AmbientServicesExtensions.GetRequiredService<TService>(IServiceProvider)
AmbientServicesExtensions.WithConfigurationStore(IAmbientServices, IConfigurationStore)
AmbientServicesExtensions.WithLogManager(IAmbientServices, ILogManager)
AmbientServicesExtensions.WithAppRuntime(IAmbientServices, IAppRuntime)
AmbientServicesExtensions.WithCompositionContainer(IAmbientServices, ICompositionContext)
AmbientServicesExtensions.WithCompositionContainer<TContainerBuilder>(IAmbientServices, Action<TContainerBuilder>)
AmbientServicesExtensions.WithLiteCompositionContainer(IAmbientServices, Action<LiteCompositionContainerBuilder>)
DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
AmbientServicesApplicationExtensions.WithDynamicAppRuntime(IAmbientServices, Func<AssemblyName, Boolean>, String, String, String, Action<DynamicAppRuntime>)
AmbientServicesApplicationExtensions.WithStaticAppRuntime(IAmbientServices, Func<AssemblyName, Boolean>, String, String, String, Action<StaticAppRuntime>)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
CompositionContextExtensions.ToCompositionContext(IServiceProvider)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
AmbientServicesDebugLogExtensions.WithDebugLogManager(IAmbientServices, Action<String, String, Object, Exception>)
AmbientServicesNLogExtensions.WithNLogManager(IAmbientServices)
AmbientServicesSerilogExtensions.WithSerilogManager(IAmbientServices, LoggerConfiguration)
AmbientServicesLog4NetExtensions.WithLog4NetManager(IAmbientServices)
AmbientServicesAutofacExtensions.WithAutofacCompositionContainer(IAmbientServices, Action<AutofacCompositionContainerBuilder>)
AmbientServicesMefExtensions.WithMefCompositionContainer(IAmbientServices, Action<MefCompositionContainerBuilder>)
AmbientServicesPluginsExtensions.WithPluginsAppRuntime(IAmbientServices, Func<AssemblyName, Boolean>, String, String, String, IExpando, Nullable<Boolean>, String, String)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
ConfigurationServiceCollectionExtensions.ConfigureOptionsExtensions(IAmbientServices)
LoggingServiceCollectionExtensions.ConfigureLoggingExtensions(IAmbientServices)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX