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));
        }
示例#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));
        }
示例#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()));
 }
示例#6
0
 public IsAliveResponse IsAlive(IsAliveRequest request)
 {
     return(new IsAliveResponse {
         Resultaat = true
     });
 }