Example #1
0
 public OrderExtensions(IProductOrderRepository orderRepository, IUserAccountRepository DefineUserRepository,IServiceRepository serviceRepository)
 {
     _ROrder = orderRepository;
     _RDefineUser = DefineUserRepository;
     _RProduct = serviceRepository;
     //EDefineUser = new DefineUserExtentions(_RDefineUser);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceSynchronizationService"/> class.
 /// </summary>
 /// <param name="medicalProcedureTranslator">The medical procedure translator.</param>
 /// <param name="serviceRepository">The service repository.</param>
 /// <param name="serviceFactory">The service factory.</param>
 /// <param name="lookupValueRepository">The lookup value repository.</param>
 public ServiceSynchronizationService(IMedicalProcedureTranslator medicalProcedureTranslator, IServiceRepository serviceRepository, IServiceFactory serviceFactory, ILookupValueRepository lookupValueRepository)
 {
     _medicalProcedureTranslator = medicalProcedureTranslator;
     _serviceRepository = serviceRepository;
     _serviceFactory = serviceFactory;
     _lookupValueRepository = lookupValueRepository;
 }
 public SubscriptionService( IServiceRepository serviceRepository, 
                             IServiceChargeRepository serviceChargeRepository,
                             ISubscriptionRepository subscriptionRepository)
 {
     _serviceRepository = serviceRepository;
     _serviceChargeRepository = serviceChargeRepository;
     _subscriptionRepository = subscriptionRepository;
 }
 public ServiceService(IValidationDictionary validationDictionary, IServiceRepository repository,
     ISystemServicesService systemService)
 {
     _validationDictionary = validationDictionary;
     _userHelper = new UserHelper();
     _repository = repository;
     _systemService = systemService;
 }
Example #5
0
 public OrderController(IProductOrderRepository OrderRepository, IUserAccountRepository DefineUserRepository,
     IServiceRepository serviceRepository)
 {
     _ROrder = OrderRepository;
     _RDefineUser = DefineUserRepository;
     _RService = serviceRepository;
     EDefineUser = new UserAccountExtentions(_RDefineUser);
     EOrder = new OrderExtensions(_ROrder ,_RDefineUser,_RService);
 }
Example #6
0
 public ActivityFactory( IInfectionRepository infectionRepository, IShiftRepository shiftRepository, IServiceProviderRepository serviceProviderRepository, IProductRepository productRepository, IServiceRepository serviceRepository, ISeasonRepository seasonRepository, ICommodityRepository commodityRepository) 
 {
     _infectionRepository = infectionRepository;
     _shiftRepository = shiftRepository;
     _serviceProviderRepository = serviceProviderRepository;
     _productRepository = productRepository;
     _serviceRepository = serviceRepository;
     _seasonRepository = seasonRepository;
     _commodityRepository = commodityRepository;
 }
Example #7
0
 public HomeController(IUnitOfWork uow, INewsRepository newsRepository, IServiceRepository ServiceRepository,
     ISeoMngRepository SeoRepository,
     IUserAccountRepository userAccountRepository)
 {
     _uow = uow;
     _RService = ServiceRepository;
     _rNewsRepository = newsRepository;
     _RSeoMng = SeoRepository;
     _rAccountRepository = userAccountRepository;
 }
Example #8
0
        public ProductController(ISettingRepository SettingRepository, IUserAccountRepository DefineUserRepository,
            IServiceRepository ServiceRepository)
        {
            _RDefineUser = DefineUserRepository;
            _RService = ServiceRepository;
            _RSetting = SettingRepository;

            EService = new ServiceExtentions(_RService, _RDefineUser);
            EDefineUser = new UserAccountExtentions(_RDefineUser);
        }
Example #9
0
 public AdminViewModel()
 {
     _productRepository = new ProductRepository();
     _categoryRepository = new CategoryRepository();
     _locationRepository = new LocationRepository();
     _serviceRepository = new ServiceRepository();
     _allergyRepository = new AllergyRepository();
     _immunizationRepository = new ImmunizationRepository();
     _medicationRepository = new MedicationRepository();
     _templateRepository = new TemplateRepository();
 }
Example #10
0
 public LoginForm(IBranchRepository branchRepository,
                  ILoginRepository loginRepository,
                  IServiceRepository serviceRepository,
                  IItemRepository itemRepository,
                  IVehicleRepository vehicleRepository,
                  ITransactionRepository transactionRepository,
                  IEmployeeRepository employeeRepository,
                  IAttendanceRepository attendanceRepository)
 {
     InitializeComponent();
     BranchRepository      = branchRepository;
     LoginRepository       = loginRepository;
     ServiceRepository     = serviceRepository;
     VehicleRepository     = vehicleRepository;
     TransactionRepository = transactionRepository;
     ItemRepository        = itemRepository;
     EmployeeRepository    = employeeRepository;
     AttendanceRepository  = attendanceRepository;
 }
Example #11
0
        public mechanicController(
            IApplicationRepository applicationRepository,
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            IMechanicRepository mechanicRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository)
        {
            this.authenticate          = authenticate;
            this.mechanicRepository    = mechanicRepository;
            this.serviceRepository     = serviceRepository;
            this.applicationRepository = applicationRepository;
            this.garageRepository      = garageRepository;
            this.logtimeRepository     = logtimeRepository;

            ah = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh = new serviceHandler(this.serviceRepository, this.garageRepository);
            mh = new MechanicHandler(this.mechanicRepository, this.garageRepository, this.applicationRepository);
        }
Example #12
0
        public garageController(
            IApplicationRepository applicationRepository,
            IAuthenticate authenticate,
            IServiceRepository serviceRepository,
            IGarageRepository garageRepository,
            ILogtimeRepository logtimeRepository,
            ILocationRepository locationRepository)
        {
            this.locationRepository    = locationRepository;
            this.authenticate          = authenticate;
            this.serviceRepository     = serviceRepository;
            this.garageRepository      = garageRepository;
            this.applicationRepository = applicationRepository;
            this.logtimeRepository     = logtimeRepository;

            ah = new authenticateHandler(this.authenticate, this.logtimeRepository);
            sh = new serviceHandler(this.serviceRepository, this.garageRepository);
            gh = new GarageHandler(this.applicationRepository, this.garageRepository, this.locationRepository);
        }
 public IServiceRepository Get(IServiceRepository parameter)
 => parameter.Register <RuntimeElement>()
 .Register <Element>()
 .Register <IElement, Element>()
 .Decorate <VariableTypeElement>(VariableTypeSpecification.Default)
 .Decorate <GenericElement>(IsGenericTypeSpecification.Default)
 .Decorate <ArrayElement>(IsArraySpecification.Default)
 .Register <IClassification, Classification>()
 .Register <IIdentityStore, IdentityStore>()
 .Register <IInnerContentServices, InnerContentServices>()
 .Register <IMemberHandler, MemberHandler>()
 .Register <ICollectionContentsHandler, CollectionContentsHandler>()
 .RegisterInstance(_writers)
 .RegisterInstance(_readers)
 .RegisterInstance <IAlteration <IInnerContentHandler> >(Self <IInnerContentHandler> .Default)
 .RegisterInstance <IInnerContentResult>(InnerContentResult.Default)
 .RegisterInstance <IMemberAssignment>(MemberAssignment.Default)
 .RegisterInstance <ICollectionAssignment>(CollectionAssignment.Default)
 .RegisterInstance <IListContentsSpecification>(ListContentsSpecification.Default);
Example #14
0
 public void SetUp()
 {
     _employeeRepository = new EmployeeRepository(
         new Repository <Employee>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository <Employee>(
             NHibernateSessionManager.GetLocalSession()));
     _userRepository = new UserRepository(
         new Repository <User>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository <User>(
             NHibernateSessionManager.GetLocalSession()));
     _customerRepository = new CustomerRepository(
         new Repository <Customer>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository <Customer>(
             NHibernateSessionManager.GetLocalSession()));
     _serviceRepository = new ServiceRepository(
         new Repository <Service>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository <Service>(
             NHibernateSessionManager.GetLocalSession()));
 }
Example #15
0
 public UnitOfWork(ICustomerRepository CustomerRepository, IManagerRepository ManagerRepository,
                   IMapper Mapper, IMailService MailService, IRepositoryHelper RepositoryHelper,
                   IServiceRepository ServiceRepository, IEmployeeRepository EmployeeRepository,
                   ILaundryRepository LaundryRepository, IInvoiceRepository InvoiceRepository,
                   IJwtAuthenticationManager JwtAuthenticationManager,
                   IDashboardRepo DashboardRepo)
 {
     this.CustomerRepository       = CustomerRepository;
     this.EmployeeRepository       = EmployeeRepository;
     this.ManagerRepository        = ManagerRepository;
     this.MailService              = MailService;
     this.Mapper                   = Mapper;
     this.InvoiceRepository        = InvoiceRepository;
     this.ServiceRepository        = ServiceRepository;
     this.InvoiceRepository        = InvoiceRepository;
     this.JwtAuthenticationManager = JwtAuthenticationManager;
     this.LaundryRepository        = LaundryRepository;
     this.DashboardRepo            = DashboardRepo;
 }
Example #16
0
 public RepositoryWrapper(
     IDataContext context,
     ISlipwayRepository slipwaysRepository,
     IWaterRepository waterRepository,
     IManufacturerRepository manufacturerRepository,
     IServiceRepository serviceRepository,
     IMarinaRepository marinaRepository,
     IStationRepository stationRepository,
     IExtraRepository extraRepository)
 {
     Context       = context;
     Slipways      = slipwaysRepository;
     Stations      = stationRepository;
     Marinas       = marinaRepository;
     Services      = serviceRepository;
     Waters        = waterRepository;
     Manufacturers = manufacturerRepository;
     Extras        = extraRepository;
 }
 public ServicesController(
     IServiceRepository serRepository,
     ILocationRepository locationRepository,
     IOrganisationMemberRepository organisationMemberRepository,
     IRegisterManagmentServiceClient registerManagmentServiceClient,
     ILocationSearchServiceClient locationSearchServiceClient,
     IPostcodeServiceClient postcodeServiceClient,
     IKeyContactRepository keyContactRepo,
     IAuthorizationService authorizationService
     )
 {
     _serRepository                  = serRepository;
     _locationRepository             = locationRepository;
     _registerManagmentServiceClient = registerManagmentServiceClient;
     _locationSearchServiceClient    = locationSearchServiceClient;
     _postcodeServiceClient          = postcodeServiceClient;
     _organisationMemberRepo         = organisationMemberRepository;
     _keyContactRepo                 = keyContactRepo;
     _authorizationService           = authorizationService;
 }
Example #18
0
 public CustomerAppService(
     ICustomerRepository customerRepository,
     IServiceRepository serviceRepository,
     ISupporterRepository supporterRepository,
     IAgenterRepository agenterRepository,
     ICustomerJobRepository customerJobRepository,
     IAnswerRepository answerRepository,
     IMapper mapper,
     IMediatorHandler bus
     )
 {
     _customerRepository    = customerRepository;
     _serviceRepository     = serviceRepository;
     _supporterRepository   = supporterRepository;
     _agenterRepository     = agenterRepository;
     _customerJobRepository = customerJobRepository;
     _answerRepository      = answerRepository;
     _mapper = mapper;
     Bus     = bus;
 }
 public ScheduleDetailsController(IActiveScheduleRepository activeScheduleRepository,
                                  IUserHelper userHelper,
                                  IVehicleRepository vehicleRepository,
                                  IServicesSuppliedRepository servicesSuppliedRepository,
                                  IConverterHelper converterHelper,
                                  IDealershipRepository dealershipRepository,
                                  IScheduleDetailRepository scheduleDetailRepository,
                                  IServiceRepository serviceRepository,
                                  IEmployeeRepository employeeRepository)
 {
     _activeScheduleRepository = activeScheduleRepository;
     _userHelper                 = userHelper;
     _vehicleRepository          = vehicleRepository;
     _servicesSuppliedRepository = servicesSuppliedRepository;
     _converterHelper            = converterHelper;
     _dealershipRepository       = dealershipRepository;
     _scheduleDetailRepository   = scheduleDetailRepository;
     _serviceRepository          = serviceRepository;
     _employeeRepository         = employeeRepository;
 }
 public DealershipsController(IDealershipRepository dealershipRepository,
                              IServicesSuppliedRepository servicesSuppliedRepository,
                              IServiceRepository serviceRepository,
                              IConverterHelper converterHelper,
                              ICityRepository cityRepository,
                              IZipCodeRepository zipCodeRepository,
                              IDepartmentRepository departmentRepository,
                              IDealershipDepartmentRepository dealershipDepartmentRepository,
                              IDealershipServiceRepository dealershipServiceRepository)
 {
     _dealershipRepository           = dealershipRepository;
     _servicesSuppliedRepository     = servicesSuppliedRepository;
     _serviceRepository              = serviceRepository;
     _converterHelper                = converterHelper;
     _cityRepository                 = cityRepository;
     _zipCodeRepository              = zipCodeRepository;
     _departmentRepository           = departmentRepository;
     _dealershipDepartmentRepository = dealershipDepartmentRepository;
     _dealershipServiceRepository    = dealershipServiceRepository;
 }
        private static void AddServiceAsScoped(this IServiceRepository repository, Type type, Func <object> serviceBuilder)
        {
            repository.AddService(type, () =>
            {
                if (!ScopedCache.TryGetValue(repository, out var serviceMap))
                {
                    serviceMap = new Dictionary <Type, object>();
                    ScopedCache.Add(repository, serviceMap);
                }

                if (!serviceMap.TryGetValue(type, out var service))
                {
                    // Build the service on first retrieval, then store it for future use
                    service = serviceBuilder();
                    serviceMap.Add(type, service);
                }

                return(service);
            });
        }
Example #22
0
 public ServiceAppService(
     IServiceRepository serviceRepository,
     IServiceImageRepository serviceImageRepository,
     IDbUnitOfWork unitOfWork,
     IImageServiceProxy imageServiceProxy,
     IOrganizationServiceProxy organizationServiceProxy,
     IAmapProxy amapProxy,
     TmpInstanceGenerate tmp,
     IUserServiceProxy userServiceProxy, IServicerRepository servicerRepository, IGoodsServiceProxy goodsServiceProxy)
 {
     _tmp = tmp;
     _serviceRepository        = serviceRepository;
     _serviceImageRepository   = serviceImageRepository;
     _dbUnitOfWork             = unitOfWork;
     _imageServiceProxy        = imageServiceProxy;
     _organizationServiceProxy = organizationServiceProxy;
     _amapProxy          = amapProxy;
     _userServiceProxy   = userServiceProxy;
     _servicerRepository = servicerRepository;
     _goodsServiceProxy  = goodsServiceProxy;
 }
Example #23
0
 public IServiceRepository Get(IServiceRepository parameter)
 => parameter.RegisterInstance(Encoding.UTF8)
 .RegisterInstance(_names)
 .RegisterInstance(_reader.Clone())
 .RegisterInstance(_writer.Clone())
 .RegisterInstance <IIdentifierFormatter>(IdentifierFormatter.Default)
 .RegisterInstance <IReaderFormatter>(ReaderFormatter.Default)
 .RegisterInstance <IFormattedContentSpecification>(FormattedContentSpecification.Default)
 .RegisterInstance <IListContentsSpecification>(
     new ListContentsSpecification(
         IsTypeSpecification <
             IListInnerContent>
         .Default
         .And(ElementSpecification
              .Default)))
 .Register <IInnerContentActivation, XmlInnerContentActivation>()
 .Register <IFormatReaderContexts, FormatReaderContexts>()
 .Register <IFormatWriters <System.Xml.XmlWriter>, FormatWriters>()
 .Register <IXmlReaderFactory, XmlReaderFactory>()
 .Register <IFormatReaders <System.Xml.XmlReader>, FormatReaders>()
 .Register <IExtendedXmlSerializer, ExtendedXmlSerializer>();
Example #24
0
 public UnitOfWork(
     BankDbContext context
     , IAccountRepository accountRepository
     , ICardRepository cardRepository
     , ICityRepository cityRepository
     , ICurrencyRepository currencyRepository
     , IDepositRepository depositRepository
     , IDepositTypeRepository depositTypeRepository
     , IEmploymentRepository employmentRepository
     , IEmploymentTypeRepository employmentTypeRepository
     , IInterestPaymentTypeRepository interestPaymentTypeRepository
     , ILoanRepository loanRepository
     , ILoanRequestRepository loanRequestRepository
     , ILoanTypeRepository loanTypeRepository
     , IQuestionRepository questionRepository
     , IServiceCategoryRepository serviceCategoryRepository
     , IServiceRepository serviceRepository
     , ITransactionsRepository transactionsRepository
     , IAccountPropertyRepository accountPropertyRepository
     )
 {
     _context                       = context;
     _accountRepository             = new Lazy <IAccountRepository>(accountRepository);
     _cardRepository                = new Lazy <ICardRepository>(cardRepository);
     _cityRepository                = new Lazy <ICityRepository>(cityRepository);
     _currencyRepository            = new Lazy <ICurrencyRepository>(currencyRepository);
     _depositRepository             = new Lazy <IDepositRepository>(depositRepository);
     _depositTypeRepository         = new Lazy <IDepositTypeRepository>(depositTypeRepository);
     _employmentRepository          = new Lazy <IEmploymentRepository>(employmentRepository);
     _employmentTypeRepository      = new Lazy <IEmploymentTypeRepository>(employmentTypeRepository);
     _interestPaymentTypeRepository = new Lazy <IInterestPaymentTypeRepository>(interestPaymentTypeRepository);
     _loanRepository                = new Lazy <ILoanRepository>(loanRepository);
     _loanRequestRepository         = new Lazy <ILoanRequestRepository>(loanRequestRepository);
     _loanTypeRepository            = new Lazy <ILoanTypeRepository>(loanTypeRepository);
     _questionRepository            = new Lazy <IQuestionRepository>(questionRepository);
     _serviceCategoryRepository     = new Lazy <IServiceCategoryRepository>(serviceCategoryRepository);
     _serviceRepository             = new Lazy <IServiceRepository>(serviceRepository);
     _transactionsRepository        = new Lazy <ITransactionsRepository>(transactionsRepository);
     _accountPropertyRepository     = new Lazy <IAccountPropertyRepository>(accountPropertyRepository);
 }
Example #25
0
        // Опис: Метод кој овозможува инсертирање на сервис
        // Влезни параметри: IServiceRepository serviceRepository,Service service,string ednPoint, ILogger logger
        // Излезни параметри: /
        public void InsertService(IServiceRepository serviceRepository, Service service, string ednPoint, ILogger logger)
        {
            var newService = new Service
            {
                Code     = service.Code,
                Name     = service.Name,
                Endpoint = ednPoint,
                Wsdl     = service.Wsdl
            };

            try
            {
                serviceRepository.InsertService(newService);
                //serviceRepository.Save();
            }
            catch (Exception e)
            {
                var nameLogerError = "DynamicallySetName";
                logger.Error(JsonConvert.SerializeObject(service) + "------------" + e.Message, e, "Direction " + nameLogerError);
                throw new FaultException(e.Message);
            }
        }
        /// <summary>
        /// Mobile Topup Service
        /// </summary>
        /// <param name="MobileNumber"></param>
        /// <param name="Amount"></param>
        /// <returns>Extra1=BillNumber,Extra2=RefStan</returns>
        public CommonDbResponse ConsumeService(string MobileNumber, long Amount)
        {
            CommonDbResponse response = new CommonDbResponse();

            if (!Regex.IsMatch(MobileNumber, @"^\d+$"))
            {
                response.Code    = ResponseCode.Failed;
                response.Message = "Please input valid Mobile Number";
                return(response);
            }

            var checkMobile = MobileNumberValidate(MobileNumber, Amount);

            if (checkMobile.Code != ResponseCode.Success)
            {
                response.Code    = ResponseCode.Failed;
                response.Message = checkMobile.Message;
                return(response);
            }

            IServiceRepository factory = apiServicesAbstractFactory.Create(checkMobile.ServiceName);
            var package = factory.PACKAGE(checkMobile.MobileNumber, checkMobile.ServiceCode.ToString(), Amount.ToString());

            if (package.Result != "000")
            {
                response.Code    = ResponseCode.Failed;
                response.Message = package.ResultMessage;
                return(response);
            }
            var payment = factory.PAYMENT(Amount.ToString(), checkMobile.MobileNumber, package.BillInfo.Bill.BillNumber, package.BillInfo.Bill.RefStan, checkMobile.ServiceCode.ToString());

            response.Code    = payment.Result != "000" ? ResponseCode.Failed : ResponseCode.Success;
            response.Message = payment.ResultMessage;
            response.Extra1  = package.Result == "000" ? package.BillInfo.Bill.BillNumber : "";
            response.Extra2  = package.Result == "000" ? package.BillInfo.Bill.RefStan : "";
            response.Id      = package.TransactionId;
            response.Data    = payment;
            return(response);
        }
        public void Compose(IModule composableModule, IServiceRepository serviceContainer)
        {
            var register    = serviceContainer.Get <IServiceRegistrationProvider>();
            var modules     = serviceContainer.Get <IModuleEnumerator>();
            var logProvider = serviceContainer.Get <ILogProvider>();
            var cdp         = serviceContainer.Get <IContentDirectoryProvider>();

            var loader = new EmulatorExecutableProvider(logProvider.GetLogger("EmulatorExecutableLoader"), modules);

            register.RegisterService <IEmulatorExecutableProvider>(loader);

            var emucdp = new EmulatorTaskRootDirectoryProvider(cdp);

            register.RegisterService <IEmulatorTaskRootDirectoryProvider>(emucdp);

            var systemFileProvider = new SystemFileProvider(cdp);

            register.RegisterService <ISystemFileProvider>(systemFileProvider);

            var savingProvider = new SaveLocationProvider(cdp);

            register.RegisterService <ISaveLocationProvider>(savingProvider);
        }
Example #28
0
 /// <inheritdoc />
 public IServiceRepository Get(IServiceRepository parameter)
 => parameter.RegisterConstructorDependency <IContents>((provider, info) => provider.Get <DeferredContents>())
 .Register <IContents, RuntimeContents>()
 .DecorateContentsWith <MemberedContents>()
 .When <IActivatingTypeSpecification>()
 .DecorateContentsWith <DefaultCollections>()
 .When <DefaultCollectionSpecification>()
 .Register <IDictionaryEntries, DictionaryEntries>()
 .DecorateContentsWith <DictionaryContents>()
 .When <DictionaryContentSpecification>()
 .DecorateContentsWith <Arrays>()
 .When(ArraySpecification.Default)
 .DecorateContentsWith <MappedArrayContents>()
 .Then()
 .RegisterInstance(ReflectionSerializer.Default)
 .DecorateContentsWith <ReflectionContents>()
 .When(ReflectionContentSpecification.Default)
 .DecorateContentsWith <NullableContents>()
 .When(IsNullableTypeSpecification.Default)
 .DecorateContentsWith <ConverterContents>()
 .When <ConverterSpecification>()
 .DecorateContentsWith <RegisteredContents>()
 .When <RegisteredContentSpecification>();
Example #29
0
        static void Main(string[] args)
        {
            AccountRepository accountRepository = new AccountRepository();
            ServiceHost       sh = new ServiceHost(accountRepository, new Uri[] { new Uri(AccountRepositoryURI) });

            ServiceMetadataBehavior metadata = sh.Description.Behaviors.Find <ServiceMetadataBehavior>();

            if (metadata == null)
            {
                metadata = new ServiceMetadataBehavior();
                sh.Description.Behaviors.Add(metadata);
            }

            metadata.MetadataExporter.PolicyVersion = PolicyVersion.Policy15;
            sh.AddServiceEndpoint(ServiceMetadataBehavior.MexContractName, MetadataExchangeBindings.CreateMexTcpBinding(), "mex");

            NetTcpBinding accountRepositoryBinding = new NetTcpBinding(SecurityMode.None);

            accountRepositoryBinding.MaxBufferSize          = MaxBufferSize;
            accountRepositoryBinding.MaxBufferPoolSize      = MaxBufferPoolSize;
            accountRepositoryBinding.MaxReceivedMessageSize = MaxReceivedMessageSize;
            sh.AddServiceEndpoint(typeof(IAccountRepository), accountRepositoryBinding, AccountRepositoryURI);


            sh.Open();
            Console.WriteLine("Serwis uruchomiony...");

            Console.WriteLine("Próba zarejestrowania serwisu w ServiceRepository...");
            ChannelFactory <IServiceRepository> cf = new ChannelFactory <IServiceRepository>(new NetTcpBinding(SecurityMode.None), ServiceRepositoryURI);
            IServiceRepository serviceRepository   = cf.CreateChannel();

            serviceRepository.registerService("AccountRepository", AccountRepositoryURI);
            Console.WriteLine("Serwis zarejestrowany w ServiceRepository.");

            Console.ReadLine();
        }
        public void Compose(IModule module, IServiceRepository coreInstance)
        {
            var stone            = coreInstance.Get <IStoneProvider>();
            var input            = coreInstance.Get <IInputManager>();
            var plugin           = coreInstance.Get <IPluginManager>();
            var mappedController = coreInstance.Get <IControllerElementMappingsStore>();
            var saves            = coreInstance.Get <ISaveLocationProvider>();
            var gameLib          = coreInstance.Get <IGameLibrary>();

            var rootSchema        = coreInstance.Get <IGraphQLService>();
            var inputQuery        = new InputQueryBuilder(input, plugin, mappedController, stone);
            var controllerQueries = new ControllerLayoutQueryBuilder(stone);
            var emuQuery          = new EmulationQueryBuilder(plugin.GetCollection <IEmulator>(), stone, gameLib, saves,
                                                              inputQuery, controllerQueries);

            rootSchema.Register(controllerQueries);
            rootSchema.Register(inputQuery);
            rootSchema.Register(emuQuery);
            var logger = coreInstance.Get <ILogProvider>().GetLogger("graphql");

            logger.Info("Registered Controller GraphQL Queries.");
            logger.Info("Registered Input GraphQL Queries.");
            logger.Info("Registered Emulation GraphQL Queries.");
        }
Example #31
0
 public ConverterHelper(IVehicleRepository vehicleRepository,
                        IBrandRepository brandRepository,
                        IFuelRepository fuelRepository,
                        IColorRepository colorRepository,
                        IUserHelper userHelper,
                        IZipCodeRepository zipCodeRepository,
                        ICountryRepository countryRepository,
                        IComboHelpers comboHelpers,
                        IServiceRepository serviceRepository,
                        IDealershipRepository dealershipRepository,
                        IDepartmentRepository departmentRepository)
 {
     _vehicleRepository    = vehicleRepository;
     _brandRepository      = brandRepository;
     _fuelRepository       = fuelRepository;
     _colorRepository      = colorRepository;
     _userHelper           = userHelper;
     _zipCodeRepository    = zipCodeRepository;
     _countryRepository    = countryRepository;
     _comboHelpers         = comboHelpers;
     _serviceRepository    = serviceRepository;
     _dealershipRepository = dealershipRepository;
     _departmentRepository = departmentRepository;
 }
        public void Compose(IModule composableModule, IServiceRepository serviceContainer)
        {
            var fileSignatureCollection = new FileSignatureCollection()
            {
                { "application/vnd.stone-romfile.sony.psx-discimage", new PlaystationRawDiscFileSignature() },
                { "application/vnd.stone-romfile.sony.ps2-discimage", new Playstation2Iso9660FileSignature() },
                { "application/vnd.stone-romfile.sony.psp-discimage", new PlaystationPortableIso9660FileSignature() },
                { "application/vnd.stone-romfile.nintendo.wii-wbfs", new WiiWbfsFileSignature() },
                { "application/vnd.stone-romfile.nintendo.wii-discimage", new WiiIso9660FileSignature() },
                { "application/vnd.stone-romfile.nintendo.snes", new SuperNintendoHeaderlessFileSignature() },
                { "application/vnd.stone-romfile.nintendo.snes-magiccard", new SuperNintendoSmcHeaderFileSignature() },
                { "application/vnd.stone-romfile.nintendo.nes-unif", new NintendoEntertainmentSystemUnifFileSignature() },
                { "application/vnd.stone-romfile.nintendo.nes-ines", new NintendoEntertainmentSystemiNesFileSignature() },
                { "application/vnd.stone-romfile.nintendo.nds", new NintendoDSFileSignature() },
                { "application/vnd.stone-romfile.nintendo.gbc", new GameboyColorFileSignature() },
                { "application/vnd.stone-romfile.nintendo.gb", new GameboyFileSignature() },
                { "application/vnd.stone-romfile.nintendo.gba", new GameboyAdvancedFileSignature() },
                { "application/vnd.stone-romfile.nintendo.n64-littleendian", new Nintendo64LittleEndianFileSignature() },
                { "application/vnd.stone-romfile.nintendo.n64-byteswapped", new Nintendo64ByteswappedFileSignature() },
                { "application/vnd.stone-romfile.nintendo.n64-bigendian", new Nintendo64BigEndianFileSignature() },
                { "application/vnd.stone-romfile.sega.32x", new Sega32XFileSignature() },
                { "application/vnd.stone-romfile.sega.scd-discimage", new SegaCdRawImageFileSignature() },
                { "application/vnd.stone-romfile.sega.gen", new SegaGenesisFileSignature() },
                { "application/vnd.stone-romfile.sega.gg", new SegaGameGearFileSignature() },
                { "application/vnd.stone-romfile.sega.sat-discimage", new SegaSaturnFileSignature() },
                { "application/vnd.stone-romfile.sega.32xcd-discimage", new Sega32XCdRawImageFileSignature() },
            };

            var pluginManager = serviceContainer.Get <IPluginManager>();
            var stoneProvider = serviceContainer.Get <IStoneProvider>();

            pluginManager.Register <IScraper>(new RomFileInfoScraper(fileSignatureCollection));
            pluginManager.Register <IScraper>(new StructuredFilenameTitleScraper(stoneProvider));
            pluginManager.Register <IScraper>(new FileMimetypeScraper(stoneProvider, fileSignatureCollection));
            pluginManager.Register <IScraper>(new PlatformInferralScraper(stoneProvider, fileSignatureCollection));
        }
Example #33
0
 public Queries(ApplicationDbContext context,
                IQuotationRepository quotationRepository,
                IOrderDetailsRepository orderDetailsRepository,
                IOrderRepository orderRepository,
                ITaskRepository taskRepository,
                IMaterialRepository materialRepository,
                IApplicationUserRepository applicationUserRepository,
                IEmployeeRepository employeeRepository,
                IServiceRepository serviceRepository,
                IPictureRepository pictureRepository,
                IServiceTypeRepository serviceTypeRepository)
 {
     _quotationRepository       = quotationRepository;
     _orderDetailsRepository    = orderDetailsRepository;
     _orderRepository           = orderRepository;
     _taskRepository            = taskRepository;
     _materialRepository        = materialRepository;
     _applicationUserRepository = applicationUserRepository;
     _employeeRepository        = employeeRepository;
     _serviceRepository         = serviceRepository;
     _pictureRepository         = pictureRepository;
     _serviceTypeRepository     = serviceTypeRepository;
     _context = context;
 }
        public ModuleLicenseController(IModuleRepository moduleRepository, IServiceRepository serviceRepository, IModuleLicenseRepository modulelicenseRepository)
        {
			this.moduleRepository = moduleRepository;
			this.serviceRepository = serviceRepository;
			this.modulelicenseRepository = modulelicenseRepository;
        }
Example #35
0
        //protected IBankRepository _bankRepository;
        //protected IBankBranchRepository _bankBranchRepository;
        #region Constructors

        public InsertTestData(IOutletVisitReasonsTypeRepository visitReasonsTypeRepository,IActivityTypeRepository activityTypeRepository,IContainerTypeRepository containerTypeRepository, IRetireDocumentSettingRepository retireDocumentSettingRepository, IOutletPriorityRepository outletPriorityRepository,
        IOutletVisitDayRepository outletVisitDayRepository, IAssetStatusRepository assetStatusRepository,
        IAssetCategoryRepository assetCategoryRepository, IUserGroupRepository userGroupRepository, IUserGroupRolesRepository userGroupRolesRepository, ISalesmanRouteRepository salesmanRouteRepository, IProductTypeRepository productTypeRepository, IProductBrandRepository productBrandRepository, IProductFlavourRepository productFlavourRepository, IProductPackagingRepository productPackagingRepository, IProductPackagingTypeRepository productPackagingTypeRepository, IProductRepository productRepository, IRegionRepository regionRepository, ICostCentreRepository costCentreRepository, ICostCentreFactory costCentreFactory, IProductPricingRepository pricingRepository,
        IVATClassRepository vatClassRepository, IVATClassFactory vatClassFactory, ICountryRepository countryRepository,
        IProductPricingFactory productPricingFactory, IProductPricingTierRepository productPricingTierRepository,
        IOutletTypeRepository outletTypeRepository, IUserRepository userRepository, IOutletRepository outletRepository,
        IRouteRepository routeRepository, IRouteFactory routeFactory, ITransporterRepository transporterRepository,
        IProductFactory productFactory, IDistributorSalesmanRepository distributorSalesmanRepository,
        IProducerRepository producerRepository,  IDocumentFactory documentFactory,
        ISocioEconomicStatusRepository socioEconomicStatusRepository, IClientMasterDataTrackerRepository clientMasterDataTrackerRepository,
        IDistributorRepository distributorrepository, IOutletCategoryRepository outletCategoryRepository, 
        ITerritoryRepository territoryRepository, 
         IAreaRepository areaRepository,
        IContactRepository contactRepository, IAccountRepository accountRepository, IAccountTransactionRepository accountTransactionRepository,
        IInventoryRepository inventoryRepository, IInventoryTransactionRepository inventoryTransactionRepository,
        ICostCentreApplicationRepository costCentreApplicationRepository, IChannelPackagingRepository channelPackagingRepository,
        ICompetitorRepository competitorRepository, ICompetitorProductsRepository competitorProductRepository, IAssetRepository coolerRepository,
        IAssetTypeRepository coolerTypeRepository, IDistrictRepository districtRepository, IProvincesRepository provinceRepository,
        IReOrderLevelRepository reorderLevelRepository, ITargetPeriodRepository targetPeriodRepository, ITargetRepository targetRepository,
        IProductDiscountFactory productDiscountFactory, IProductDiscountRepository productDiscountRepository, ISaleValueDiscountFactory saleValueDiscountFactory,
        ISaleValueDiscountRepository saleValueDiscountRepository, IBankRepository bankRepository, IBankBranchRepository bankBranchRepository,
        ISupplierRepository supplierRepository, ICreatePaymentNoteCommandHandler createLossCommandHandler, IAddPaymentNoteLineItemCommandHandler addLossLineItemCommandHandler, IConfirmPaymentNoteCommandHandler confirmLossCommandHandler,
        IContactTypeRepository contactTypeRepository, IDiscountGroupRepository discountGroupRepository, IProductDiscountGroupFactory productDiscountGroupFactory,
        ICertainValueCertainProductDiscountFactory certainValueCertainProductDiscountFactory,
        ICustomerDiscountFactory customerDiscountFactory,
        IPromotionDiscountFactory promotionDiscountFactory,
        IProductDiscountGroupRepository productDiscountGroupRepository,
        IPromotionDiscountRepository promotionDiscountRepository,
        IFreeOfChargeDiscountRepository freeOfChargeDiscountRepository,
        ICertainValueCertainProductDiscountRepository certainValueCertainProductDiscountRepository,
        ITargetItemRepository targetItemRepository, ISettingsRepository settingsRepository, 
        ICentreRepository centreRepository, ICentreTypeRepository centreTypeRepository, 
        ICommoditySupplierRepository commoditySupplierRepository, ICommodityOwnerTypeRepository commodityOwnerTypeRepository, 
        ICommodityOwnerRepository commodityOwnerRepository, ICommodityProducerRepository commodityProducerRepository, 
        ICommodityRepository commodityRepository, ICommodityTypeRepository commodityTypeRepository,
        IEquipmentRepository equipmentRepository, IMasterDataAllocationRepository masterDataAllocationRepository,IVehicleRepository vehicleRepository,IHubRepository hubRepository,
        IPurchasingClerkRouteRepository purchasingClerkRouteRepository,IInfectionRepository infectionRepository,ISeasonRepository seasonRepository,IServiceProviderRepository serviceProviderRepository,IServiceRepository serviceRepository,IShiftRepository shiftRepository,ISalesmanSupplierRepository salesmanSupplierRepository
            )
        {
            _salesmanSupplierRepository = salesmanSupplierRepository;
            _productTypeRepository = productTypeRepository;
            _productBrandRepository = productBrandRepository;
            _productFlavourRepository = productFlavourRepository;
            _productPackagingRepository = productPackagingRepository;
            _productPackagingTypeRepository = productPackagingTypeRepository;
            _productRepository = productRepository;
            _regionRepository = regionRepository;
            _costCentreRepository = costCentreRepository;
            _costCentreFactory = costCentreFactory;
            _pricingRepository = pricingRepository;
            _vatClassRepository = vatClassRepository;
            _vatClassFactory = vatClassFactory;
            _countryRepository = countryRepository;
            _productPricingFactory = productPricingFactory;
            _ProductPricingTierRepository = productPricingTierRepository;
            _outletTypeRepository = outletTypeRepository;
            _userRepository = userRepository;
            _outletRepository = outletRepository;
            _routeRepository = routeRepository;
            _routeFactory = routeFactory;
            _transporterRepository = transporterRepository;
            _productFactory = productFactory;
            _distributorSalesmanRepository = distributorSalesmanRepository;
            _producerRepository = producerRepository;
            _documentFactory = documentFactory;
            _socioEconomicStatusRepository = socioEconomicStatusRepository;
            _clientMasterDataTrackerRepository = clientMasterDataTrackerRepository;
            _distributorrepository = distributorrepository;
            _outletCategoryRepository = outletCategoryRepository;
            //_createOrderCommandHandler = createOrderCommandHandler;
            _territoryRepository = territoryRepository;
            _areaRepository = areaRepository;
            _contactRepository = contactRepository;
            _accountRepository = accountRepository;
            _accountTransactionRepository = accountTransactionRepository;
            _inventoryRepository = inventoryRepository;
            _inventoryTransactionRepository = inventoryTransactionRepository;
            _costCentreApplicationRepository = costCentreApplicationRepository;
            _channelPackagingRepository = channelPackagingRepository;
            _competitorRepository = competitorRepository;
            _competitorProductRepository = competitorProductRepository;
            _coolerRepository = coolerRepository;
            _coolerTypeRepository = coolerTypeRepository;
            _districtRepository = districtRepository;
            _provinceRepository = provinceRepository;
            _reorderLevelRepository = reorderLevelRepository;
            _targetPeriodRepository = targetPeriodRepository;
            _targetRepository = targetRepository;
            _productDiscountFactory = productDiscountFactory;
            _productDiscountRepository = productDiscountRepository;
            _saleValueDiscountFactory = saleValueDiscountFactory;
            _saleValueDiscountRepository = saleValueDiscountRepository;
            _salesmanRouteRepository = salesmanRouteRepository;
            _userGroupRepository = userGroupRepository;
            _userGroupRolesRepository = userGroupRolesRepository;
            _bankRepository = bankRepository;
            _bankBranchRepository = bankBranchRepository;
            _supplierRepository = supplierRepository;
            _createLossCommandHandler = createLossCommandHandler;
            _addLossLineItemCommandHandler = addLossLineItemCommandHandler;
            _confirmLossCommandHandler = confirmLossCommandHandler;
           
            _contactTypeRepository = contactTypeRepository;
            _assetCategoryRepository = assetCategoryRepository;
            _assetStatusRepository = assetStatusRepository;
            _discountGroupRepository = discountGroupRepository;
            _productDiscountGroupFactory = productDiscountGroupFactory;
            _certainValueCertainProductDiscountFactory = certainValueCertainProductDiscountFactory;
            _customerDiscountFactory = customerDiscountFactory;
            _promotionDiscountFactory = promotionDiscountFactory;
            _productDiscountGroupRepository = productDiscountGroupRepository;
            _promotionDiscountRepository = promotionDiscountRepository;
            _freeOfChargeDiscountRepository = freeOfChargeDiscountRepository;
            _certainValueCertainProductDiscountRepository = certainValueCertainProductDiscountRepository;
            _outletPriorityRepository = outletPriorityRepository;
            _outletVisitDayRepository = outletVisitDayRepository;
            _targetItemRepository = targetItemRepository;
            _settingsRepository = settingsRepository;
            _retireDocumentSettingRepository = retireDocumentSettingRepository;
            _commodityOwnerTypeRepository = commodityOwnerTypeRepository;
            _commodityOwnerRepository = commodityOwnerRepository;
            _commoditySupplierRepository = commoditySupplierRepository;
            _centreTypeRepository = centreTypeRepository;
            _centreRepository = centreRepository;
            _commodityProducerRepository = commodityProducerRepository;
            _commodityRepository = commodityRepository;
            _commodityTypeRepository = commodityTypeRepository;
            _equipmentRepository = equipmentRepository;
            _masterDataAllocationRepository = masterDataAllocationRepository;
            _containerTypeRepository = containerTypeRepository;
            _hubRepository = hubRepository;
            _vehicleRepository = vehicleRepository;
            _purchasingClerkRouteRepository = purchasingClerkRouteRepository;
            _ShiftRepository = shiftRepository;
            _SeasonRepository = seasonRepository;
            _ServiceProviderRepository = serviceProviderRepository;
            _ServiceRepository = serviceRepository;
            _InfectionRepository = infectionRepository;
            _activityTypeRepository = activityTypeRepository;
            _outletVisitReasonsTypeRepository = visitReasonsTypeRepository;
        }
 public CommodityProducerServiceController(IDTOToEntityMapping dtoToEntityMapping, IMasterDataToDTOMapping masterDataToDtoMapping, CokeDataContext context, IServiceRepository serviceRepository) 
     : base(dtoToEntityMapping, masterDataToDtoMapping, context)
 {
     _serviceRepository = serviceRepository;
 }
 public ServiceDb()
 {
     serviceDb = repository.AppKernel.Get<EfServiceRepository>();
 }
Example #38
0
 public AddPresenter(IServiceRepository serviceRepository, IServiceCategoryRepository categoryRepository)
 {
     _serviceRepository = serviceRepository;
     _categoryRepository = categoryRepository;
 }
Example #39
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServiceFactory"/> class.
 /// </summary>
 /// <param name="serviceRepository">The service repository.</param>
 public ServiceFactory(IServiceRepository serviceRepository)
 {
     _serviceRepository = serviceRepository;
 }
Example #40
0
 public HouseholdCharts([NotNull] IServiceRepository services, Stage stage) : base(nameof(HouseholdCharts), services, stage)
 {
 }
Example #41
0
 public ServiceExtentions(IServiceRepository ServiceRepository, IUserAccountRepository DefineUserRepository)
 {
     _RService =ServiceRepository;
     _RDefineUser = DefineUserRepository;
     EDefineUser = new UserAccountExtentions(_RDefineUser);
 }
Example #42
0
 public UserService(string connectionService)
 {
     db = new ServiceRepository(connectionService);
 }
Example #43
0
 public void SetUp()
 {
     _employeeRepository = new EmployeeRepository(
         new Repository<Employee>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository<Employee>(
             NHibernateSessionManager.GetLocalSession()));
     _userRepository = new UserRepository(
         new Repository<User>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository<User>(
             NHibernateSessionManager.GetLocalSession()));
     _customerRepository = new CustomerRepository(
         new Repository<Customer>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository<Customer>(
             NHibernateSessionManager.GetLocalSession()));
     _serviceRepository = new ServiceRepository(
         new Repository<Service>(NHibernateSessionManager.GetLocalSession()),
         new TransactionalRepository<Service>(
             NHibernateSessionManager.GetLocalSession()));
 }
Example #44
0
 public HomeController()
 {
     _serviceRepository = new ServiceRepository();
 }
 public DocumentManagerService(IServiceRepository serviceRepository)
 {
     _connectionString = "";
     _serviceRepository = serviceRepository;
 }
 public UpdateServiceHandler(IServiceRepository serviceRepository)
 {
     this.serviceRepository = serviceRepository;
 }
 public CreatePresenter(IServiceBookingRepository serviceBookingRepository, IServiceRepository serviceRepository, IServiceCategoryRepository serviceCategoryRepository)
 {
     _serviceBookingRepository = serviceBookingRepository;
     _serviceRepository = serviceRepository;
     _serviceCategoryRepository = serviceCategoryRepository;
 }
Example #48
0
        public ServiceController(IServiceRepository serviceRepository)
        {
			this.serviceRepository = serviceRepository;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ServicesController"/> class.
 /// </summary>
 /// <param name="repository">The service repository.</param>
 public ServicesController(IServiceRepository repository)
 {
     ServiceRepository = repository;
 }
 public ServiceApplicationService(IServiceRepository repository, IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     this._repository = repository;
 }
Example #51
0
 public AddPresenter(IServiceRepository serviceRepository, IServiceCategoryRepository categoryRepository)
 {
     _serviceRepository  = serviceRepository;
     _categoryRepository = categoryRepository;
 }
 public void Dispose()
 {
     _repository = null;
 }
 public PVPotentialCharts([NotNull] IServiceRepository services, Stage myStage) : base(nameof(PVPotentialCharts), services, myStage)
 {
     DevelopmentStatus.Add("Maps are messed up");
     DevelopmentStatus.Add("clean up the different charts and remove redundants");
 }
 public ServiceService()
 {
     //ObjectFactory.Container.Configure(x => x.AddRegistry<WcfRegistry>());
     _serviceRepository = ObjectFactory.GetInstance <IServiceRepository>();
     _sessionProvider   = ObjectFactory.GetInstance <ISessionProvider>();
 }
 public ServiceManager()
 {
     _AlphasoftWebsiteContext = new AlphasoftWebsiteContext();
     _iServiceRepository      = new ServiceRepository(_AlphasoftWebsiteContext);
 }
 public ServiceService()
 {
     //ObjectFactory.Container.Configure(x => x.AddRegistry<WcfRegistry>());
     _serviceRepository = ObjectFactory.GetInstance<IServiceRepository>();
     _sessionProvider = ObjectFactory.GetInstance<ISessionProvider>();
 }