示例#1
0
 public static async Task <Server> GetAsync(ulong serverId, [CanBeNull] Client client)
 {
     return(await FactoryUtils.GetAsync <Server, ServerJson, NoSuchServerException>(_cache, "Server", null, FactoryUtils.ResolveGetter <ServerJson>(client, c2 => c2.GetServerJsonAsync), json => new Server(json), Populate, serverId));
 }