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