Skip to content

Commit

Permalink
feat(game-service): add client count
Browse files Browse the repository at this point in the history
  • Loading branch information
codingben committed Apr 12, 2023
1 parent 1b7f394 commit e553f14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -55,5 +55,10 @@ public bool TryGet(int id, out IGameClient gameClient)
{
return collection.TryGetValue(id, out gameClient);
}

public int Count()
{
return collection.Count;
}
}
}
Expand Up @@ -7,5 +7,7 @@ public interface IGameClientCollection
void Remove(int id);

bool TryGet(int id, out IGameClient gameClient);

int Count();
}
}

0 comments on commit e553f14

Please sign in to comment.