Exemple #1
0
        static void Main(string[] args)
        {
            var configuration = new Configuration();

            _kafka = new DestinationKafka(configuration.KafkaUrl);

            _propertySource = new SourcePropertyChanges(configuration.CacheUsername, configuration.CachePassword,
                                                        configuration.PropertyCacheUrl);

            Task.Run(() => StartPolling(_propertySource, _kafka));

            Console.WriteLine("Running...");
            Console.ReadLine();
            _interrupted = true;
            Console.WriteLine("Quitting...");
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var configuration = new Configuration();

            _kafka = new DestinationKafka(configuration.KafkaUrl);

            _propertySource = new SourcePropertyChanges(configuration.CacheUsername, configuration.CachePassword,
                configuration.PropertyCacheUrl);

            Task.Run(() => StartPolling(_propertySource, _kafka));

            Console.WriteLine("Running...");
            Console.ReadLine();
            _interrupted = true;
            Console.WriteLine("Quitting...");
        }