public override bool SyncResources() { try { var loaclResources = RouteScanHelper.RouteScan(); var list = _request.Post<IEnumerable<string>, IEnumerable<string>>("api/Resource", loaclResources).Result; AddAllowlist(list); return true; } catch (System.Exception) { return false; } }
public override LyciumToken RefreshToken(LyciumToken token, long uid, long gid) { return(_request.Post <LyciumToken, LyciumToken>("api/LyciumToken/refresh", token, uid, gid).Result); }