• Guides
  • Api Documentation
Show / Hide Table of Contents
  • Introduction
  • MpGame
    • 1 - Getting started
    • 2 - Players
    • 3 - Games
    • 4 - Services
    • 5 - Modules
    • 6 - Final step
    • 7 - Extra considerations
    • 8 - Specialized types

Final step

The final step is to register the service into the DI container and the game module into the command service.

// on your IServiceCollection instance:
map.AddSingleton(new CardGameService());

// on your CommandService instance:
await commands.AddModule<CardGameModule>(_services);
  • Improve this Doc
Back to top Generated by DocFX