Example #1
0
        //private List<double[]> arrays = new List<double[]>();

        public Form1()
        {
            context = new InstanceContext(new ServiceCallback());
            client  = new ServiceReference1.ServiceTrendingClient(context);
            UpdateTrendingHandler = new UpdateTrendingDelegate(UpdateValue);

            client.TrendingInit();

            InitializeComponent();
            thread = new Thread(new ThreadStart(this.getNewValues));
            thread.IsBackground = true;
            thread.Start();
        }
Example #2
0
 public void TrendingInit()
 {
     ServiceCallback       = OperationContext.Current.GetCallbackChannel <IServiceCallback>();
     UpdateTrendingHandler = new UpdateTrendingDelegate(SendToTrendingHandler);
 }