static void Main(string[] args) { ServiceManager serviceManager = new ServiceManager(); ClientSideCE n = ClientSideCE.Instance; Console.ReadLine(); }
static void Main(string[] args) { PubSubCalculatioEngine pubSubCalculatioEngine = new PubSubCalculatioEngine(); ServiceManager serviceManager = new ServiceManager(PubSubCalculatioEngine.Instance); ClientSideCE n = ClientSideCE.Instance; n.Connect(); n.ProxyTM.Enlist("net.tcp://localhost:19516/ITransactionCheck"); Console.WriteLine("Press enter to send data."); Console.ReadLine(); DataToUI data = new DataToUI(); data.Data = CalculationEngineCache.Instance.GetAllDerForecastDayAhead(); PubSubCalculatioEngine.Instance.Notify(data, (int)Enums.Topics.Flexibility); Console.WriteLine("Press enter to exit."); Console.ReadLine(); }