Class AmbientServicesApplicationExtensions
Extension methods for the IAmbientServices.
Inheritance
Inherited Members
Namespace: Kephas.Application
Assembly: Kephas.Core.dll
Syntax
public static class AmbientServicesApplicationExtensions
Methods
| Improve this Doc View SourceWithDynamicAppRuntime(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.
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.