Exemple #1
0
        public static void TestAvailListAddUpdate(AvailMartService.AvailMartServiceClient client)
        {
            var request = new AvailListAddUpdateRequest();

            request.AvailList = new AvailList();
            request.AvailList.AvailListHashKey = "0856c8ce-c0c7-44fc-b588-295a22f78104";
            request.AvailList.AvailListSqn     = 1106783771;
            request.AvailList.AvailMartHashKey = "1ac87b8c-4adb-4c72-b8ad-7c898f67b37c";
            request.AvailList.Name             = "ec663657-d9ec-47ec-b2f6-37e5076eac17";
            request.AvailList.StartDate        = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.0766793Z"), DateTimeKind.Utc));
            request.AvailList.EndDate          = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.0766793Z"), DateTimeKind.Utc));
            var response = client.AvailListAddUpdate(request);
        }
Exemple #2
0
        public override async Task <AvailListAddUpdateResponse> AvailListAddUpdate(AvailListAddUpdateRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new AvailListAddUpdateQuery
            {
                AvailList = request.AvailList.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new AvailListAddUpdateResponse
            {
            };

            return(result);
        }