public MaintenanceService(Infrastructure infrastructure, FhirService service) { this.service = service; this.localhost = infrastructure.Localhost; this.generator = infrastructure.Generator; this.store = infrastructure.Store; this.index = infrastructure.Index; }
public FhirService(Infrastructure infrastructure) { this.localhost = infrastructure.Localhost; this.store = infrastructure.Store; this.snapshotstore = infrastructure.SnapshotStore; this.generator = infrastructure.Generator; this.index = infrastructure.Index; this.listener = infrastructure.ServiceListener; transfer = new Transfer(generator, localhost); pager = new Pager(store, snapshotstore, localhost, transfer); }
public static Infrastructure ClearListeners(this Infrastructure infrastructure, IServiceListener listener) { if (infrastructure.ServiceListener == null) { infrastructure.ServiceListener = new ServiceListener(); } if (infrastructure.ServiceListener is ServiceListener) { (infrastructure.ServiceListener as ServiceListener).Clear(); } return(infrastructure); }
static Infra() { Infra.Simple = new Infrastructure().AddLocalhost(Settings.GuidanceEndpoint).AddSimpleStore(); }
public static Infrastructure AddLocalhost(this Infrastructure infrastructure, ILocalhost localhost) { infrastructure.Localhost = localhost; return(infrastructure); }
public static FhirService CreateService(this Infrastructure infrastructure) { return(new FhirService(infrastructure)); }
public static Infrastructure AddLocalhost(this Infrastructure infrastructure, Uri url) { return(infrastructure.AddLocalhost(new Localhost(url))); }
static InfrastructureProvider() { Mongo = Infrastructure.Default(); Mongo.AddLocalhost(Settings.Endpoint); Mongo.AddMongo(Settings.MongoUrl); }
public static Infrastructure Empty() { var infra = new Infrastructure(); infra.SearchParameters = Enumerable.Empty<ModelInfo.SearchParamDefinition>().ToList(); return infra; }
public static Infrastructure Default() { var infra = new Infrastructure(); infra.SearchParameters = ModelInfo.SearchParameters; return infra; }