Ejemplo n.º 1
0
        //[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);
 }
Ejemplo n.º 3
0
 public CallsController(CallCenterContext ctx)
 {
     _ctx = ctx;
 }
Ejemplo n.º 4
0
 public HomeController(CallCenterContext ctx)
 {
     _ctx = ctx;
 }
 public CustomerRepository(CallCenterContext context) : base(context)
 {
 }
 public CampaignRepository(CallCenterContext context) : base(context)
 {
 }
Ejemplo n.º 7
0
 public HomeController(CallCenterContext ctx, IHubContext <CallHub, ICallHub> hubContext)
 {
     _ctx        = ctx;
     _hubContext = hubContext;
 }
Ejemplo n.º 8
0
 public UserHub(CallCenterContext db)
 {
     _db = db;
 }
Ejemplo n.º 9
0
 public CallCenterService(
     CallCenterContext callCenterContext
     )
 {
     _callCenterContext = callCenterContext;
 }
 public CallCenterContextSeedData(CallCenterContext context)
 {
     _context = context;
 }
Ejemplo n.º 11
0
 public AuthorizationRepository()
 {
     _ctx         = new CallCenterContext();
     _userManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(_ctx));
 }
Ejemplo n.º 12
0
 public IndividualsController(CallCenterContext context)
 {
     _context = context;
 }
Ejemplo n.º 13
0
 public RepositoryBase(CallCenterContext context)
 {
     _context = context;
 }
Ejemplo n.º 14
0
 public HomeController(CallCenterContext db)
 {
     _db = db;
 }
Ejemplo n.º 15
0
 public StaffsController(CallCenterContext context)
 {
     _context = context;
 }
Ejemplo n.º 16
0
 public DesignationsController(CallCenterContext context)
 {
     _context = context;
 }
Ejemplo n.º 17
0
 public CallsController(CallCenterContext context)
 {
     _context = context;
 }