//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(); }
public void TrendingInit() { ServiceCallback = OperationContext.Current.GetCallbackChannel <IServiceCallback>(); UpdateTrendingHandler = new UpdateTrendingDelegate(SendToTrendingHandler); }