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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
 public Task <IsAliveResponse> IsAliveAsync(IsAliveRequest IsAliveRequest)
 {
     return(Channel.IsAliveAsync(IsAliveRequest));
 }
 public override Task <IsAliveReply> IsAlive(IsAliveRequest request, ServerCallContext context)
 {
     return(Task.FromResult(IsAliveHandler()));
 }
Beispiel #6
0
 public IsAliveResponse IsAlive(IsAliveRequest request)
 {
     return(new IsAliveResponse {
         Resultaat = true
     });
 }