예제 #1
0
        private static void Main()
        {
            // initialize Serilog

            Log.Logger = new LoggerConfiguration()
                         .MinimumLevel.Warning()
                         .WriteTo.Console()
                         .CreateLogger();

            // initialize MassiveJobs

            JobsBuilder.Configure()
            .WithSerilog()
            .WithSettings("examples.")
            .WithRabbitMqBroker()
            .Build();

            Console.WriteLine("Testing periodic jobs. Press Enter to quit!");

            PeriodicJob.PublishPeriodic("test_periodic", "0/2 * * ? * *");

            Console.ReadLine();

            JobsBuilder.DisposeJobs();
        }
예제 #2
0
 public void TestCleanup()
 {
     JobsBuilder.DisposeJobs();
 }