Class ApplicationExtensions
Extension methods for IAppRuntime.
Inheritance
System.Object
ApplicationExtensions
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.Application.dll
Syntax
public static class ApplicationExtensions
Fields
| Improve this Doc View SourceFeaturesKey
The features key.
Declaration
public const string FeaturesKey = "Features"
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceContainsFeature(IAppRuntime, String)
Indicates whether the application runtime contains the indicated feature.
Declaration
public static bool ContainsFeature(this IAppRuntime appRuntime, string featureName)
Parameters
| Type | Name | Description |
|---|---|---|
| IAppRuntime | appRuntime | The application runtime to act on. |
| System.String | featureName | Name of the feature. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the application runtime contains the indicated feature, false otherwise. |
Remarks
The name comparison is case insensitive.
GetFeatures(IAppRuntime)
Gets the application features.
Declaration
public static IEnumerable<IFeatureInfo> GetFeatures(this IAppRuntime appRuntime)
Parameters
| Type | Name | Description |
|---|---|---|
| IAppRuntime | appRuntime | The app runtime to act on. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IFeatureInfo> | The application features. |