Beispiel #1
0
 public ClientsController(IClientGroupService cgS, IEndPlayerClientService epcS, IClientScheduleService csS, ICampaignService cS)
 {
     clientGroupService     = cgS;
     endPlayerClientService = epcS;
     clientScheduleService  = csS;
     campaignService        = cS;
 }
Beispiel #2
0
        //public ContentHub(IEndPlayerClientService epcS) : base()
        //{
        //    this.endPlayerClientService = epcS;
        //}

        public ContentHub(ILifetimeScope lifetimeScope)
        {
            this._hubLifetimeScope = lifetimeScope.BeginLifetimeScope();

            // Resolve dependencies from the hub lifetime scope.
            endPlayerClientService = _hubLifetimeScope.Resolve <IEndPlayerClientService>();
            clientScheduleService  = _hubLifetimeScope.Resolve <IClientScheduleService>();
        }