Exemplo n.º 1
0
        private static void Watcher()
        {
            var TableWatcher = new TableWatcherStrategy <Pessoa>();

            try
            {
                TableWatcher.InitializeTableWatcher();
                TableWatcher.StartTableWatcher();
                Console.WriteLine("Esperando para receber notificações...");
                Console.WriteLine("Precione qualquer tecla para sair");
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message, ex.InnerException);
            }
            finally
            {
                TableWatcher.StopTableWatcher();
            }
        }
Exemplo n.º 2
0
 public TableWatcherInitializer()
 {
     twPaises = new TableWatcherStrategy <Paises>();
 }