예제 #1
0
        public override async Task <Pole.Grpc.ExtraType.CommonCommandResponse> AddBacket(AddBacketRequest backetDto, ServerCallContext context)
        {
            var result = await testClient.AddBacketAsync(new SagasTest.Api.TestRequest {
            });

            var newId = Guid.NewGuid().ToString("N").ToLower();
            //backetDto.Id = newId;
            var grain = clusterClient.GetGrain <IAddBacketGrain>(newId);

            //await  grain.AddBacket(backetDto);

            return(new Pole.Grpc.ExtraType.CommonCommandResponse {
                Status = 1
            });
        }