Example #1
0
        private ChannelHubBase CreateChannelHub(ChannelHubSettings channelHubSettings)
        {
            Type type;

            type = typeof(ChannelHub <>).MakeGenericType(new Type[] { OneDasUtilities.GetTypeFromOneDasDataType(channelHubSettings.DataType) });

            return((ChannelHubBase)Activator.CreateInstance(type, channelHubSettings));
        }
Example #2
0
        public ChannelHubBase(ChannelHubSettings channelHubSettings)
        {
            this.Settings = channelHubSettings;

            this.AssociatedDataOutputSet = new List <DataPort>();
        }
Example #3
0
 public ChannelHub(ChannelHubSettings channelHubSettings) : base(channelHubSettings)
 {
     //
 }
Example #4
0
 private bool IsAssociationAllowed(DataPort dataPort, ChannelHubSettings channelHub)
 {
     return(OneDasUtilities.GetBitLength(dataPort.DataType, true) == OneDasUtilities.GetBitLength(channelHub.DataType, true));
 }