protected override void OnStart(ADLite.AlfaDirect alfaDirect) { alfaDirect.GlobalFilter["FI"] = "36929|102155"; // USD-3.15 & BR-3.15 string msg; alfaDirect.OnTableChanged += AlfaDirect_OnTableChanged; alfaDirect.SubscribeTable("fin_info", "*", "paper_no = 36929", eSubsctibeOptions.Default, out msg); Console.WriteLine(msg); alfaDirect.SubscribeTable("fin_info", "*", "paper_no = 102155", eSubsctibeOptions.Default, out msg); Console.WriteLine(msg); }
protected override void OnStart(ADLite.AlfaDirect alfaDirect) { writer = writerFactory.GetTextWriter(); alfaDirect.OnTableChanged += AlfaDirect_OnTableChanged; subscriptionParams = GetSubscriptionParams(alfaDirect); foreach (var filterEntry in subscriptionParams.GlobalFilter) { alfaDirect.GlobalFilter[filterEntry.Item1] = filterEntry.Item2; } string message; alfaDirect.SubscribeTable(subscriptionParams.Table, subscriptionParams.Columns, subscriptionParams.TableFilter, eSubsctibeOptions.Default, out message); Utils.Trace.TraceInformation(message); }