Пример #1
0
 public AdminService(CPMathHubModelContainer context, int userId = 0)
 {
     _loginUserId = userId;
     dal          = new MathHubUoW(context);
     cService     = new CommonService(context);
     aService     = new AccountService(context);
 }
Пример #2
0
 public MathHubUoW(CPMathHubModelContainer context)
 {
     //context.Configuration.LazyLoadingEnabled = false;
     //context.Configuration.ProxyCreationEnabled = false;
     this.context         = context;
     this.repositoryClass = typeof(Repository <>);
 }
Пример #3
0
        //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>();
        }
Пример #4
0
 public MathHubUoW()
 {
     this.context         = new CPMathHubModelContainer();
     this.repositoryClass = typeof(Repository <>);
 }
Пример #5
0
 public DiscussionService(CPMathHubModelContainer context, int userId = 0)
 {
     _loginUserId = userId;
     _dal         = new MathHubUoW(context);
     _cService    = new CommonService(context);
 }
Пример #6
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager   = userManager;
     SignInManager = signInManager;
     _context      = new CPMathHubModelContainer();
 }
Пример #7
0
 public AccountController()
 {
     _context  = new CPMathHubModelContainer();
     _aContext = new ApplicationDbContext();
     _hub      = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <RealTimeHub>();
 }
Пример #8
0
 public HomeController()
 {
     context = new CPMathHubModelContainer();
 }
Пример #9
0
        //private ApplicationUserManager uManager;

        public CommonWidgetController()
        {
            _context = new CPMathHubModelContainer();
            //UserManager = userManager;
        }
Пример #10
0
 public AdminController()
 {
     context = new CPMathHubModelContainer();
     _hub    = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <RealTimeHub>();
 }
Пример #11
0
 public Repository(CPMathHubModelContainer context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }
Пример #12
0
 public AccountService(CPMathHubModelContainer context, int userId = 0)
 {
     _loginUserId = userId;
     _dal         = new MathHubUoW(context);
 }