Ejemplo n.º 1
0
 static async Task UpdateEveryVinylSend()
 {
     var vinyls = srvVinyls.GetAllVinyls().Result;
     await CurrentConnection.SendAsync(MessageParser.Create("UpdateAll", vinyls, vinyls.GetType().Name));
 }
Ejemplo n.º 2
0
        static async Task Main(string[] args)
        {
            CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;

            Action <string> consoleLog = Console.WriteLine;

            timeTracker = new TimeTracker();

            stockUpdater = new StockUpdater();

            stockUpdater.Subscribe(timeTracker, UpdateStock);

            vinylTracker = new VinylTracker();

            vinylObserver = new VinylObserver();

            vinylObserver.Subscribe(vinylTracker, (x) => { _ = CurrentConnection.SendAsync(MessageParser.Create("OnNext", x, x.GetType().Name)); });

            await CreateServer();
        }
Ejemplo n.º 3
0
 static async Task ConfirmSend()
 {
     await CurrentConnection.SendAsync(MessageParser.Create("Confirm", "", "void"));
 }