Пример #1
0
        static void Main()
        {
            const string serverAddress = "https://wa-grpctest-skylight001-dev.azurewebsites.net";

            NotificationsDerived notifications = new NotificationsDerived(serverAddress);

            notifications.Subscribe(notifications =>
            {
                _messages.Add(notifications);
                return(null);
            });

            do
            {
                RefreshNotifications();
                Task.Delay(1000).GetAwaiter().GetResult();
            } while (true);
        }
Пример #2
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     Config.Initialize(configuration);
     NotificationsDerived.Initialize(Config.ServerAddress);
 }