Show / Hide Table of Contents

Class WindowsPCFactory

Factory for creating Windows PC devices.

Inheritance
System.Object
DeviceFactoryBase
WindowsPCFactory
Implements
IDeviceFactory
Inherited Members
DeviceFactoryBase.DeviceTypeName
DeviceFactoryBase.DeviceTypeAliases
DeviceFactoryBase.DeviceTypeDisplayName
DeviceFactoryBase.IconUri
DeviceFactoryBase.Events
DeviceFactoryBase.Logger
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.Devices.WindowsPC.dll
Syntax
public sealed class WindowsPCFactory : DeviceFactoryBase, IDeviceFactory

Constructors

View Source

WindowsPCFactory(IPhoenixLogger, IEventAggregator)

Initializes a new instance of the WindowsPCFactory class.

Declaration
public WindowsPCFactory(IPhoenixLogger logger, IEventAggregator events)
Parameters
Type Name Description
IPhoenixLogger logger

The current logger.

IEventAggregator events

The event aggregate service.

Fields

View Source

FactoryDeviceDisplayName

The device type display name for this factory.

Declaration
public const string FactoryDeviceDisplayName = "Windows PC"
Field Value
Type Description
System.String
View Source

FactoryDeviceName

The device type name for this factory.

Declaration
public const string FactoryDeviceName = "Windows PC"
Field Value
Type Description
System.String

Methods

View Source

CreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)

Creates an instance of a Windows PC device.

Declaration
public override IDevice CreateDeviceInstance(IPAddress address, string name, string alias, string configType, string configuration, string deviceId, Guid phoenixId)
Parameters
Type Name Description
System.Net.IPAddress address

The IP of the device.

System.String name

The name of the device if known.

System.String alias

The alias of the device if known.

System.String configType

Device specific configuration type.

System.String configuration

Device specific configuration string.

System.String deviceId

The expected device id that will be matched to the id the device provides.

System.Guid phoenixId

The id for the device

Returns
Type Description
IDevice

A Windows PC device.

Overrides
DeviceFactoryBase.CreateDeviceInstance(IPAddress, String, String, String, String, String, Guid)

Implements

IDeviceFactory
  • View Source
In This Article
Back to top Generated by DocFX