public void GetCharacters(uint accountId, Action <List <Character> > callback) { _queue.Add(new Task(() => { var result = _wrappedDatabase.GetCharacters(accountId); callback?.Invoke(result); })); }
public void GetCharacters(uint subscriptionId, Action <List <CachedCharacter> > callback) { _queue.Add(new Task(() => { var result = _wrappedDatabase.GetCharacters(subscriptionId); if (callback != null) { callback.Invoke(result); } })); }