コード例 #1
0
        static void Main(string[] args)
        {
            Configuration.Configuration configuration = Configuration.Configuration.GetConfiguration();

            Subscriber subscriber = new Subscriber(configuration.Dc, configuration.Node);

            subscriber.StartEvents((CheckEvent ev) =>
            {
                Console.WriteLine("Created: {0}", ev.Created);
                Console.WriteLine("Id: {0}", ev.Id);
                Console.WriteLine("Message: {0}", ev.Message);
                Console.WriteLine("Node: {0}", ev.Node);
                Console.WriteLine("Notes: {0}", ev.Notes);
                Console.WriteLine("Source: {0}", ev.Source);
                Console.WriteLine("Status: {0}", ev.Status);

                Console.WriteLine();
            });

            Console.ReadLine();

            subscriber.StopEvents();
        }