Beispiel #1
0
 private static void CreateServiceHostInstance(WcfHost.Interface.ICouponManagmentService couponManagmentservice, WcfHost.Interface.ICategoryService categoryservice, WcfHost.Interface.ICompanyService companyservice, WcfHost.Interface.IOpeningStockService openningStockservice, WcfHost.Interface.IProductService productservice, WcfHost.Interface.IPurchaseService purchaseservice, WcfHost.Interface.IStockAdjustmentService stockAdjustmentservice, WcfHost.Interface.ISystemConfigurationService systemConfigurationservice, WcfHost.Interface.ITaxService taxservice, WcfHost.Interface.IUserService userservice, WcfHost.Interface.ISupplierService supplierservice)
 {
     categoryServiceHost        = new ServiceHost(categoryservice);
     companyServiceHost         = new ServiceHost(companyservice);
     couponManagmentServiceHost = new ServiceHost(couponManagmentservice);
     OpeningStockServiceHost    = new ServiceHost(openningStockservice);
     stockAdjustmentServiceHost = new ServiceHost(stockAdjustmentservice);
     ProductServiceHost         = new ServiceHost(productservice);
     supplier                       = new ServiceHost(supplierservice);
     purchaseServiceHost            = new ServiceHost(purchaseservice);
     systemConfigurationServiceHost = new ServiceHost(systemConfigurationservice);
     taxServiceHost                 = new ServiceHost(taxservice);
     userServiceHost                = new ServiceHost(userservice);
 }
Beispiel #2
0
        private static void SetKernel(out WcfHost.Interface.ICouponManagmentService couponManagmentservice, out WcfHost.Interface.ICategoryService categoryservice, out WcfHost.Interface.ICompanyService companyservice, out WcfHost.Interface.IOpeningStockService openningStockservice, out WcfHost.Interface.IProductService productservice, out WcfHost.Interface.IPurchaseService purchaseservice, out WcfHost.Interface.IStockAdjustmentService stockAdjustmentservice, out WcfHost.Interface.ISystemConfigurationService systemConfigurationservice, out WcfHost.Interface.ITaxService taxservice, out WcfHost.Interface.IUserService userservice, out WcfHost.Interface.ISupplierService supplierservice)
        {
            IKernel _kernel = new StandardKernel();

            _kernel.Load(Assembly.GetExecutingAssembly());  //Load Module
            //IFinPosService customerService = _kernel.Get<IFinPosService>();
            couponManagmentservice     = _kernel.Get <FinPos.WcfHost.Services.CouponManagmentService>();
            categoryservice            = _kernel.Get <FinPos.WcfHost.Services.CategoryService>();
            companyservice             = _kernel.Get <FinPos.WcfHost.Services.CompanyService>();
            openningStockservice       = _kernel.Get <FinPos.WcfHost.Services.OpeningStockService>();
            productservice             = _kernel.Get <FinPos.WcfHost.Services.ProductService>();
            purchaseservice            = _kernel.Get <FinPos.WcfHost.Services.PurchaseService>();
            stockAdjustmentservice     = _kernel.Get <FinPos.WcfHost.Services.StockAdjustmentService>();
            systemConfigurationservice = _kernel.Get <FinPos.WcfHost.Services.SystemConfigurationService>();
            taxservice      = _kernel.Get <FinPos.WcfHost.Services.TaxService>();
            userservice     = _kernel.Get <FinPos.WcfHost.Services.UserService>();
            supplierservice = _kernel.Get <FinPos.WcfHost.Services.SupplierService>();
        }