Show / Hide Table of Contents

Class AmbientServicesApplicationExtensions

Extension methods for the IAmbientServices.

Inheritance
System.Object
AmbientServicesApplicationExtensions
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: Kephas.Application
Assembly: Kephas.Core.dll
Syntax
public static class AmbientServicesApplicationExtensions

Methods

| Improve this Doc View Source

WithDynamicAppRuntime(IAmbientServices, Func<AssemblyName, Boolean>, String, String, String, Action<DynamicAppRuntime>)

Adds the dynamic application runtime to the ambient services.

Declaration
public static IAmbientServices WithDynamicAppRuntime(this IAmbientServices ambientServices, Func<AssemblyName, bool> assemblyFilter = null, string appLocation = null, string appId = null, string appVersion = null, Action<DynamicAppRuntime> config = null)
Parameters
Type Name Description
IAmbientServices ambientServices

The ambient services.

System.Func<System.Reflection.AssemblyName, System.Boolean> assemblyFilter

Optional. A filter specifying the assembly.

System.String appLocation

Optional. The application location.

System.String appId

Optional. Identifier for the application.

System.String appVersion

Optional. The application version.

System.Action<DynamicAppRuntime> config

Optional. The application runtime configuration callback.

Returns
Type Description
IAmbientServices

The provided ambient services builder.

Remarks

It uses the IAssemblyLoader and ILogManager services from the ambient services to configure the application runtime. Make sure that these services are properly configured before using this method.

| Improve this Doc View Source

WithStaticAppRuntime(IAmbientServices, Func<AssemblyName, Boolean>, String, String, String, Action<StaticAppRuntime>)

Adds the static application runtime to the ambient services.

Declaration
public static IAmbientServices WithStaticAppRuntime(this IAmbientServices ambientServices, Func<AssemblyName, bool> assemblyFilter = null, string appLocation = null, string appId = null, string appVersion = null, Action<StaticAppRuntime> config = null)
Parameters
Type Name Description
IAmbientServices ambientServices

The ambient services.

System.Func<System.Reflection.AssemblyName, System.Boolean> assemblyFilter

Optional. A filter specifying the assembly.

System.String appLocation

Optional. The application location.

System.String appId

Optional. Identifier for the application.

System.String appVersion

Optional. The application version.

System.Action<StaticAppRuntime> config

Optional. The application runtime configuration callback.

Returns
Type Description
IAmbientServices

The provided ambient services builder.

Remarks

It uses the IAssemblyLoader and ILogManager services from the ambient services to configure the application runtime. Make sure that these services are properly configured before using this method.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX