Show / Hide Table of Contents

Class CapabilityBase

Provides the implementation for the ICapabilityInterface to derived classes.

Inheritance
System.Object
CapabilityBase
DeviceBase
Implements
ICapability
System.IServiceProvider
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 Source

GetCapabilityInterface<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.

View Source

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.

View Source

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.

View Source

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

ICapability
System.IServiceProvider

Extension Methods

ICapabilityExtensions.IsCapable(ICapability, Type[])
ICapabilityExtensions.HasCapabilityInterface<T>(ICapability)
  • View Source
In This Article
Back to top Generated by DocFX