Пример #1
0
        public static void TestDetailedPeriodAddUpdate(AvailMartService.AvailMartServiceClient client)
        {
            var request = new DetailedPeriodAddUpdateRequest();

            request.DetailedPeriod = new DetailedPeriod();
            request.DetailedPeriod.DetailedPeriodHashKey = "c9068cb7-1d04-42d0-97a3-fc66d15740bc";
            request.DetailedPeriod.DetailedPeriodSqn     = 1106783771;
            request.DetailedPeriod.AvailLineWithDetailedPeriodsHashKey = "a81f9454-ad55-4548-8b96-cb68b82166b1";
            request.DetailedPeriod.StartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.0766793Z"), DateTimeKind.Utc));
            request.DetailedPeriod.EndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.0766793Z"), DateTimeKind.Utc));
            request.DetailedPeriod.Rate      = "da68928c-fe4f-4f0d-8228-1b3adcc20937";
            var response = client.DetailedPeriodAddUpdate(request);
        }
Пример #2
0
        public override async Task <DetailedPeriodAddUpdateResponse> DetailedPeriodAddUpdate(DetailedPeriodAddUpdateRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new DetailedPeriodAddUpdateQuery
            {
                DetailedPeriod = request.DetailedPeriod.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new DetailedPeriodAddUpdateResponse
            {
            };

            return(result);
        }