Beispiel #1
0
        private static async Task GetStateAsync(Dapr.DaprClient client)
        {
            var getStateEnvelope = new GetStateEnvelope()
            {
                Key = stateKeyName,
            };

            var response = await client.GetStateAsync(getStateEnvelope);

            Console.WriteLine("Got State: " + response.Data.Value.ToStringUtf8());
        }
Beispiel #2
0
        public override async Task <GetStateResponseEnvelope> GetState(GetStateEnvelope request, ServerCallContext context)
        {
            await base.GetState(request, context);

            return(new GetStateResponseEnvelope());
        }