DD.WellWorkover.Cloud/ConsoleApp1/Program.cs
2022-04-22 17:17:38 +05:00

25 lines
759 B
C#

using System;
using System.Linq;
using System.Threading;
namespace ConsoleApp1
{
class Program
{
static void Main(/*string[] args*/)
{
// use ServiceFactory to make services
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);
Console.WriteLine("End of program");
Console.ReadLine();
}
}
}