public FhirBaseOperationService(ICommonFactory ICommonFactory, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IServerSearchParameterServiceFactory IServerSearchParameterServiceFactory) { this.ICommonFactory = ICommonFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IServerSearchParameterServiceFactory = IServerSearchParameterServiceFactory; }
//Constructor for dependency injection public IncludeService(IRepositorySwitcher IRepositorySwitcher, ICommonFactory ICommonFactory, ISearchParameterFactory ISearchParameterFactory, ICompartmentSearchParameterService ICompartmentSearchParameterService, IServiceSearchParameterCache IServiceSearchParameterCache) { this.IRepositorySwitcher = IRepositorySwitcher; this.ICommonFactory = ICommonFactory; this.ISearchParameterFactory = ISearchParameterFactory; this.ICompartmentSearchParameterService = ICompartmentSearchParameterService; this.IServiceSearchParameterCache = IServiceSearchParameterCache; }
//Constructor for dependency injection public IncludeService(IRepositorySwitcher IRepositorySwitcher, ICommonFactory ICommonFactory, ISearchParameterFactory ISearchParameterFactory, ICompartmentSearchParameterService ICompartmentSearchParameterService) { this.IRepositorySwitcher = IRepositorySwitcher; this.ICommonFactory = ICommonFactory; this.ISearchParameterFactory = ISearchParameterFactory; //this.ISearchParameterGenericFactory = ISearchParameterGenericFactory; this.ICompartmentSearchParameterService = ICompartmentSearchParameterService; //this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; }
/// <summary> /// Конструктор /// </summary> public RabbitMQConnection(ICommonFactory commonFactory) { RabbitMQConnectionFactory = new ConnectionFactory() { Uri = new Uri(commonFactory.GetRMQConnection()) }; SetAutomaticRecovery(); OpenRabbitMQConnection(); }
public Form1() { InitializeComponent(); HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel, false); ICommonFactory myICommonFactory = (ICommonFactory)Activator.GetObject( typeof(ICommonFactory), "http://localhost:1234/_Server_"); myICommon = myICommonFactory.getNewInstance(); }
public Form1() { InitializeComponent(); HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel, false); ICommonFactory myICommonFactory = (ICommonFactory)Activator.GetObject( typeof(ICommonFactory), "http://localhost:1234/_Server_"); myICommon = myICommonFactory.getNewInstance(); arrControls = new Control[25]; int currPosition = 3; for (int i = 0; i < arrControls.Length; i++) { if (myRand.Next(2) == 0) { arrControls[i] = new Button(); } else { arrControls[i] = new Label(); } switch (myRand.Next(3)) { case 0: arrControls[i].BackColor = Color.FromArgb(myRand.Next(130, 256), 0, 0); break; case 1: arrControls[i].BackColor = Color.FromArgb(0, myRand.Next(130, 256), 0); break; case 2: arrControls[i].BackColor = Color.FromArgb(0, 0, myRand.Next(130, 256)); break; } arrControls[i].TabIndex = i; arrControls[i].Size = new Size(40, 40); arrControls[i].Location = new Point(currPosition, 3); currPosition += arrControls[i].Size.Width + 2; arrControls[i].Click += new EventHandler(allControls_Click); this.Controls.Add(arrControls[i]); } }
public FhirValidationSupport(ICommonFactory ICommonFactory) { this.ICommonFactory = ICommonFactory; // Ensure the FHIR extensions are registered Hl7.Fhir.FhirPath.ElementNavFhirExtensions.PrepareFhirSymbolTableFunctions(); // Ensure the FHIR extensions are registered //Hl7.Fhir.FhirPath.PocoNavigatorExtensions.PrepareFhirSymbolTableFunctions(); var MultiResolver = new MultiResolver(); //Load all the ResourceResolvers from the DI injection, current list in order is: //InternalServerProfileResolver //AustralianFhirProfileResolver //ZipSourceResolver foreach (IResourceResolver ResourceResolver in ICommonFactory.CreateResourceResolverList()) { MultiResolver.AddSource(ResourceResolver); } //Below are manual loads for debugging //FHIR Specification.zip Zip file //MultiResolver.AddSource(new ZipSourceResolver()); // Try using the fixed content //MultiResolver.AddSource(new AustralianFhirProfileResolver()); // A specific FHIR Registry Server on the web //MultiResolver.AddSource(new WebResolver(id => new FhirClient("http://someonesfhirserver.com/fhir"))); //Look in this Pyro server's Resource //MultiResolver.AddSource(new InternalServerProfileResolver()); //for Debugging look somewhere? //MultiResolver.AddSource(new WebResolver(id => new FhirClient("http://localhost:50579/fhir"))); // Prepare the artefact resolvers (cache to reduce complexity) ResourceResolver = new CachedResolver(MultiResolver); }
public Form1() { InitializeComponent(); HttpChannel channel = new HttpChannel(); ChannelServices.RegisterChannel(channel, false); ICommonFactory myICommonFactory = (ICommonFactory)Activator.GetObject( typeof(ICommonFactory), "http://localhost:1234/_Server_"); myICommon = myICommonFactory.getNewInstance(); this.Text = "Nim"; last = toolS5; last.Checked = true; val = myICommon.numOfPens(); UCnum = myICommon.randPens(); newGame(val, UCnum); }
public ReferenceSetter(IServiceBaseUrlRepository IServiceBaseUrlRepository, IPyroFhirUriFactory IPyroFhirUriFactory, IPrimaryServiceRootCache IPrimaryServiceRootCache, ICommonFactory ICommonFactory) { this.IServiceBaseUrlRepository = IServiceBaseUrlRepository; this.IPyroFhirUriFactory = IPyroFhirUriFactory; this.IPrimaryServiceRootCache = IPrimaryServiceRootCache; }
/// <summary> /// Default Constructor. /// Creates a new instance of the <see cref="UnitOfWorkTransactionManager"/> class. /// </summary> public UnitOfWorkTransactionManager(ILogger <UnitOfWorkTransactionManager> logger, ICommonFactory <IUnitOfWork> unitOfWorkFactory) { _logger = logger; _unitOfWorkFactory = unitOfWorkFactory; _logger.LogDebug("New instance of TransactionManager with Id {0} created.", _transactionManagerId); }