//[Inject] //public SimpleAuthorizationServerProvider authProvider { get; set; } public void Configuration(IAppBuilder app) { // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888 HttpConfiguration config = GlobalConfiguration.Configuration; app.Map("/signalr", map => { map.UseCors(CorsOptions.AllowAll); var hubConfiguration = new HubConfiguration { //EnableJSONP = true }; map.RunSignalR(hubConfiguration); }); //config.DependencyResolver = new OwinNinjectDependencyResolver(NinjectConfig.CreateKernel()); WebApiConfig.Register(config); //ConfigureOAuth(app); //app.UseWebApi(config); config.MessageHandlers.Add(new TokenValidationHandler()); //ConfigureOAuth(app); app.UseNinjectMiddleware(NinjectConfig.CreateKernel).UseNinjectWebApi(config); //SignalR CallCenterContext.InitDb(); GlobalConfiguration.Configuration.EnsureInitialized(); }
public UnitOfWork(CallCenterContext context) { _context = context; Employees = new EmployeeRepository(_context); Designations = new DesignationRepository(_context); Reclamations = new ReclamationRepository(_context); }
public CallsController(CallCenterContext ctx) { _ctx = ctx; }
public HomeController(CallCenterContext ctx) { _ctx = ctx; }
public CustomerRepository(CallCenterContext context) : base(context) { }
public CampaignRepository(CallCenterContext context) : base(context) { }
public HomeController(CallCenterContext ctx, IHubContext <CallHub, ICallHub> hubContext) { _ctx = ctx; _hubContext = hubContext; }
public UserHub(CallCenterContext db) { _db = db; }
public CallCenterService( CallCenterContext callCenterContext ) { _callCenterContext = callCenterContext; }
public CallCenterContextSeedData(CallCenterContext context) { _context = context; }
public AuthorizationRepository() { _ctx = new CallCenterContext(); _userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_ctx)); }
public IndividualsController(CallCenterContext context) { _context = context; }
public RepositoryBase(CallCenterContext context) { _context = context; }
public HomeController(CallCenterContext db) { _db = db; }
public StaffsController(CallCenterContext context) { _context = context; }
public DesignationsController(CallCenterContext context) { _context = context; }
public CallsController(CallCenterContext context) { _context = context; }