Example #1
0
 public CrapsModule(
     GamblingService gamblingService,
     CrapsService crapsService,
     HelpService helpService)
 {
     _gamblingService = gamblingService;
     _crapsService    = crapsService;
     _helpService     = helpService;
 }
Example #2
0
 public GamblingController(IDistributedCache distributedCache)
 {
     gamblingService = new GamblingService(distributedCache);
 }
 public BlackjackSubmodule(IServiceProvider serviceProvider) : base(serviceProvider)
 {
     _gamblingService = serviceProvider.GetRequiredService <GamblingService>();
 }