示例#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));
        }
示例#2
0
        public ChannelHubBase(ChannelHubSettings channelHubSettings)
        {
            this.Settings = channelHubSettings;

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