Пример #1
0
        /// <summary>
        /// Get the current server status, as reported by Ubisoft's site (https://rainbow6.ubisoft.com/status/)
        /// </summary>
        /// <param name="client">The <see cref="ApiClient"/> to use</param>
        public static IEnumerable <ServerStatusReport> GetServerStatus(this ApiClient client)
        {
            var request = new ServerStatusRequest();

            return(client.Perform <IEnumerable <ServerStatusReport> >(request));
        }
Пример #2
0
 public override Task <ServerStatusReply> Status(ServerStatusRequest request, ServerCallContext context)
 {
     return(Task.FromResult(PrintStatus()));
 }
Пример #3
0
        /// <summary>
        /// Get the current server status, as reported by Ubisoft's site (https://rainbow6.ubisoft.com/status/)
        /// </summary>
        public static IEnumerable <ServerStatusReport> GetServerStatus(this ApiClient client, CancellationToken token = default)
        {
            var request = new ServerStatusRequest();

            return(client.Perform <IEnumerable <ServerStatusReport> >(request, token));
        }
Пример #4
0
 public object Get(ServerStatusRequest request)
 {
     return(GetServiceStatus().Result);
 }