public Task <string> SayHello(string greeting) { _logger.LogInformation("HelloGrain receive RPC method invocation request"); var ret = _greeter.DoGreeting(greeting); return(Task.FromResult(ret)); }
public async Task <string> SayHello(string greeting) { _logger.LogInformation("HelloGrain receive RPC method invocation request"); var greetingMsg = _greeter.DoGreeting(greeting); var visitTimes = await CallVisitTracker(greetingMsg); if (visitTimes <= 1) { return(greetingMsg); } greetingMsg += $" Visit {visitTimes} times!"; _logger.LogInformation($"Say Hello {visitTimes} times!"); return(greetingMsg); }