Show / Hide Table of Contents

Class DynamicAppRuntime

An application application runtime loading dynamically assemblies from the application localtion.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
AppRuntimeBase
DynamicAppRuntime
PluginsAppRuntime
Implements
IAppRuntime
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
Inherited Members
AppRuntimeBase.AppIdKey
AppRuntimeBase.AppInstanceIdKey
AppRuntimeBase.AppVersionKey
AppRuntimeBase.AssemblyFileSearchPattern
AppRuntimeBase.AssemblyFileExtension
AppRuntimeBase.AssemblyLoader
AppRuntimeBase.Logger
AppRuntimeBase.AssemblyFilter
AppRuntimeBase.GetAppLocation()
AppRuntimeBase.GetAppBinDirectories()
AppRuntimeBase.GetAppAssemblies(Func<AssemblyName, Boolean>)
AppRuntimeBase.GetHostAddress()
AppRuntimeBase.GetHostName()
AppRuntimeBase.GetLogger()
AppRuntimeBase.InitializeAppProperties(Assembly, String, String)
AppRuntimeBase.GetLoadedAssemblies()
AppRuntimeBase.GetReferencedAssemblies(Assembly)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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 class DynamicAppRuntime : AppRuntimeBase, IAppRuntime, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable

Constructors

| Improve this Doc View Source

DynamicAppRuntime(IAssemblyLoader, ILogManager, Func<AssemblyName, Boolean>, String, String, String, IExpando)

Initializes a new instance of the DynamicAppRuntime class.

Declaration
public DynamicAppRuntime(IAssemblyLoader assemblyLoader = null, ILogManager logManager = null, Func<AssemblyName, bool> defaultAssemblyFilter = null, string appLocation = null, string appId = null, string appVersion = null, IExpando appArgs = null)
Parameters
Type Name Description
IAssemblyLoader assemblyLoader

Optional. The assembly loader.

ILogManager logManager

Optional. Manager for log.

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

Optional. The default assembly filter.

System.String appLocation

Optional. The application location.

System.String appId

Optional. Identifier for the application.

System.String appVersion

Optional. The application version.

IExpando appArgs

Optional. The application arguments.

Methods

| Improve this Doc View Source

AddAdditionalAssemblies(IList<Assembly>, Func<AssemblyName, Boolean>)

Adds additional assemblies to the ones already collected.

Declaration
protected virtual void AddAdditionalAssemblies(IList<Assembly> assemblies, Func<AssemblyName, bool> assemblyFilter)
Parameters
Type Name Description
System.Collections.Generic.IList<System.Reflection.Assembly> assemblies

The collected assemblies.

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

A filter for the assemblies.

| Improve this Doc View Source

ComputeAppAssemblies(Func<AssemblyName, Boolean>)

Computes the application assemblies.

Declaration
protected override IEnumerable<Assembly> ComputeAppAssemblies(Func<AssemblyName, bool> assemblyFilter)
Parameters
Type Name Description
System.Func<System.Reflection.AssemblyName, System.Boolean> assemblyFilter

A filter for the assemblies.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>

An enumeration of application assemblies.

Overrides
AppRuntimeBase.ComputeAppAssemblies(Func<AssemblyName, Boolean>)
| Improve this Doc View Source

EnumerateFiles(String, String)

Enumerates the files in the provided directory.

Declaration
protected virtual IEnumerable<string> EnumerateFiles(string directory, string filePattern)
Parameters
Type Name Description
System.String directory

Pathname of the directory.

System.String filePattern

A pattern specifying the files to retrieve.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.String>

An enumeration of file names.

| Improve this Doc View Source

GetAssemblyNameFromAssemblyFileName(String)

Gets the assembly name from the assembly file name.

Declaration
protected AssemblyName GetAssemblyNameFromAssemblyFileName(string f)
Parameters
Type Name Description
System.String f

The format string.

Returns
Type Description
System.Reflection.AssemblyName

The assembly name.

| Improve this Doc View Source

GetFileName(Assembly)

Gets the file name of the provided assembly.

Declaration
protected virtual string GetFileName(Assembly assembly)
Parameters
Type Name Description
System.Reflection.Assembly assembly

The assembly.

Returns
Type Description
System.String

The assembly file name.

Implements

IAppRuntime
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable

Extension Methods

AppRuntimeExtensions.GetAppInfo(IAppRuntime)
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)
AppRuntimeExtensions.GetAppId(IAppRuntime)
AppRuntimeExtensions.GetAppVersion(IAppRuntime)
AppRuntimeExtensions.GetAppInstanceId(IAppRuntime)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
ExpandoExtensions.Merge<T>(T, Object)
ExpandoExtensions.GetLaxValue<T>(IIndexable, String, T)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
ApplicationExtensions.GetFeatures(IAppRuntime)
ApplicationExtensions.ContainsFeature(IAppRuntime, String)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX