public AdminService(CPMathHubModelContainer context, int userId = 0) { _loginUserId = userId; dal = new MathHubUoW(context); cService = new CommonService(context); aService = new AccountService(context); }
public MathHubUoW(CPMathHubModelContainer context) { //context.Configuration.LazyLoadingEnabled = false; //context.Configuration.ProxyCreationEnabled = false; this.context = context; this.repositoryClass = typeof(Repository <>); }
//private Microsoft.AspNet.SignalR.IHubContext _hub; public CommonService(CPMathHubModelContainer context, int userId = 0) { _loginUserId = userId; _dal = new MathHubUoW(context); _aService = new AccountService(context); //_hub = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext<RealTimeHub>(); }
public MathHubUoW() { this.context = new CPMathHubModelContainer(); this.repositoryClass = typeof(Repository <>); }
public DiscussionService(CPMathHubModelContainer context, int userId = 0) { _loginUserId = userId; _dal = new MathHubUoW(context); _cService = new CommonService(context); }
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager) { UserManager = userManager; SignInManager = signInManager; _context = new CPMathHubModelContainer(); }
public AccountController() { _context = new CPMathHubModelContainer(); _aContext = new ApplicationDbContext(); _hub = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <RealTimeHub>(); }
public HomeController() { context = new CPMathHubModelContainer(); }
//private ApplicationUserManager uManager; public CommonWidgetController() { _context = new CPMathHubModelContainer(); //UserManager = userManager; }
public AdminController() { context = new CPMathHubModelContainer(); _hub = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <RealTimeHub>(); }
public Repository(CPMathHubModelContainer context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public AccountService(CPMathHubModelContainer context, int userId = 0) { _loginUserId = userId; _dal = new MathHubUoW(context); }