DD.WellWorkover.Cloud/ConsoleApp1/Program.cs

25 lines
759 B
C#
Raw Normal View History

using System;
2022-04-22 17:17:38 +05:00
using System.Linq;
using System.Threading;
namespace ConsoleApp1
{
class Program
2021-10-03 20:08:17 +05:00
{
2021-07-28 09:47:13 +05:00
static void Main(/*string[] args*/)
{
2022-04-12 10:01:56 +05:00
// use ServiceFactory to make services
2022-03-17 16:56:13 +05:00
2022-04-22 17:17:38 +05:00
var db = ServiceFactory.MakeContext();
var service = new AsbCloudInfrastructure.Services.DetectOperations.DetectorService();
var start = new DateTimeOffset(2021, 1, 30, 23, 00, 00, TimeSpan.FromHours(0));
var operations = service.DetectOperationsAsync(146, start, db, CancellationToken.None).Result;
foreach (var operation in operations)
Console.WriteLine(operation);
2022-04-22 17:17:38 +05:00
Console.WriteLine("End of program");
Console.ReadLine();
2021-10-06 16:30:46 +05:00
}
}
}