public DashBoardJob(ILifetimeScope lifetimeScope) { // Create a lifetime scope for the hub. _hubLifetimeScope = lifetimeScope.BeginLifetimeScope("AutofacWebRequest"); // Resolve dependencies from the hub lifetime scope. this._IDashBoardOrchestrator = _hubLifetimeScope.Resolve <IDashBoardOrchestrator>(); }
public DashBoardController(IDashBoardOrchestrator IDashBoardOrchestrator) { this._IDashBoardOrchestrator = IDashBoardOrchestrator; }