Class CapabilityBase
Provides the implementation for the ICapabilityInterface to derived classes.
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: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public abstract class CapabilityBase : ICapability, IServiceProvider
Methods
View SourceGetCapabilityInterface<T>()
Returns the interface requested for this object.
Declaration
public T GetCapabilityInterface<T>()
where T : class
Returns
Type | Description |
---|---|
T | The interface if it is implemented or null if not implemented. |
Type Parameters
Name | Description |
---|---|
T | The interface that is being requested. |
GetService(Type)
Gets a service from a specific service provider.
Declaration
public virtual object GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serviceType | The type of service to get. |
Returns
Type | Description |
---|---|
System.Object | The requested service. |
HasCapabilityInterface(Type)
Determines if this object implements the specified interface type.
Declaration
public bool HasCapabilityInterface(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of interface to check. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the object implements the interface or not. |
HasCapabilityInterface<T>()
Checks to see if this object implements the specific interface.
Declaration
public bool HasCapabilityInterface<T>()
Returns
Type | Description |
---|---|
System.Boolean | True if it is implemented, false otherwise. |
Type Parameters
Name | Description |
---|---|
T | The interface to check for. |
Implements
System.IServiceProvider