Exemple #1
0
 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));
     }
 }
Exemple #2
0
 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)));
 }
Exemple #3
0
 public IClientChannel <T> CreateChannel <T>(string channelNamePrefix, int sectorId, string channelNameSuffix, T initialValue)
 {
     return(this.CreateChannel(PredefinedChannel.ChannelNameBuilder(channelNamePrefix, sectorId, channelNameSuffix), initialValue));
 }
Exemple #4
0
        /*public ChannelAccess ChannelAccess
         * {
         *      get
         *      {
         *              return this.channelAccess;
         *      }
         *
         *      set
         *      {
         *              this.channelAccess = value;
         *      }
         * }*/

        public void AddControlForDataBinding(Control control, PredefinedChannel predefinedChannel)
        {
            this.listOfControlsWithDataBinding.Add(control, predefinedChannel);
        }