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); }
public Startup(IConfiguration configuration) { Configuration = configuration; Config.Initialize(configuration); NotificationsDerived.Initialize(Config.ServerAddress); }