private ChannelHubBase CreateChannelHub(ChannelHubSettings channelHubSettings) { Type type; type = typeof(ChannelHub <>).MakeGenericType(new Type[] { OneDasUtilities.GetTypeFromOneDasDataType(channelHubSettings.DataType) }); return((ChannelHubBase)Activator.CreateInstance(type, channelHubSettings)); }
public ChannelHubBase(ChannelHubSettings channelHubSettings) { this.Settings = channelHubSettings; this.AssociatedDataOutputSet = new List <DataPort>(); }
public ChannelHub(ChannelHubSettings channelHubSettings) : base(channelHubSettings) { // }
private bool IsAssociationAllowed(DataPort dataPort, ChannelHubSettings channelHub) { return(OneDasUtilities.GetBitLength(dataPort.DataType, true) == OneDasUtilities.GetBitLength(channelHub.DataType, true)); }