public override Task <IsAliveResponse> IsAlive(IsAliveRequest request, ServerCallContext context) { return(Task.FromResult(new IsAliveResponse() { Name = AppEnvironment.Name, Version = AppEnvironment.Version, //StartedAt = Timestamp.FromDateTime(ApplicationInformation.StartedAt), Env = AppEnvironment.EnvInfo, //HostName = ApplicationEnvironment.HostName, })); }
public override Task <IsAliveResponce> IsAlive(IsAliveRequest request, ServerCallContext context) { var result = new IsAliveResponce { Name = ApplicationInformation.AppName, Version = ApplicationInformation.AppVersion, StartedAt = ApplicationInformation.StartedAt.ToString("yyyy-MM-dd HH:mm:ss") }; return(Task.FromResult(result)); }
public override Task <IsAliveResponce> IsAlive(IsAliveRequest request, ServerCallContext context) { var result = new IsAliveResponce { Name = ApplicationInformation.AppName, Version = ApplicationInformation.AppVersion, StartedAt = ApplicationInformation.StartedAt.ToString("yyyy-MM-dd HH:mm:ss"), Env = ApplicationEnvironment.Environment ?? string.Empty, Hostname = Environment.MachineName }; return(Task.FromResult(result)); }
public Task <IsAliveResponse> IsAliveAsync(IsAliveRequest IsAliveRequest) { return(Channel.IsAliveAsync(IsAliveRequest)); }
public override Task <IsAliveReply> IsAlive(IsAliveRequest request, ServerCallContext context) { return(Task.FromResult(IsAliveHandler())); }
public IsAliveResponse IsAlive(IsAliveRequest request) { return(new IsAliveResponse { Resultaat = true }); }