public IServerChannel <T> CreateChannel <T>(PredefinedChannel predefinedChannel) { if (predefinedChannel.DataType != typeof(T)) { throw new ArgumentException("Predefined channel value is: " + predefinedChannel.DataType + ", but the supplied generic type parameter was: " + typeof(T).Name + ". Generic type parameter and predefined channel data type should match."); } else { return(CreateChannel <T>(predefinedChannel.ChannelName)); } }
protected IServerChannel <T> CreateChannel <T>(PredefinedChannel predefinedChannel) { // Using the singleton instance of the channel access server return(Provider.Server.CreateChannel <T>(predefinedChannel.SetId(this.ComponentNo))); }
public IClientChannel <T> CreateChannel <T>(string channelNamePrefix, int sectorId, string channelNameSuffix, T initialValue) { return(this.CreateChannel(PredefinedChannel.ChannelNameBuilder(channelNamePrefix, sectorId, channelNameSuffix), initialValue)); }
/*public ChannelAccess ChannelAccess * { * get * { * return this.channelAccess; * } * * set * { * this.channelAccess = value; * } * }*/ public void AddControlForDataBinding(Control control, PredefinedChannel predefinedChannel) { this.listOfControlsWithDataBinding.Add(control, predefinedChannel); }