Method Create
Create<T>(string, SlotDirection, int)
Creates a slot instance from a compile-time slot type.
public static ISlot Create<T>(string name, SlotDirection direction, int id) where T : ISlot, new()
Parameters
namestringDisplay name of the slot.
directionSlotDirectionInput or output direction.
idintPer-node slot identifier.
Returns
Type Parameters
TConcrete slot type to instantiate.
Create(Type, string, SlotDirection, int)
Creates a slot instance by invoking the standard (string, SlotDirection, int) constructor on the supplied slot type.
public static ISlot Create(Type t, string name, SlotDirection direction, int id)
Parameters
tTypeConcrete slot type to instantiate.
namestringDisplay name of the slot.
directionSlotDirectionInput or output direction.
idintPer-node slot identifier.