Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 static Infra()
 {
     Infra.Simple = new Infrastructure().AddLocalhost(Settings.GuidanceEndpoint).AddSimpleStore();
 }
Exemplo n.º 5
0
 public static Infrastructure AddLocalhost(this Infrastructure infrastructure, ILocalhost localhost)
 {
     infrastructure.Localhost = localhost;
     return(infrastructure);
 }
Exemplo n.º 6
0
 public static FhirService CreateService(this Infrastructure infrastructure)
 {
     return(new FhirService(infrastructure));
 }
Exemplo n.º 7
0
 public static Infrastructure AddLocalhost(this Infrastructure infrastructure, Uri url)
 {
     return(infrastructure.AddLocalhost(new Localhost(url)));
 }
Exemplo n.º 8
0
 static InfrastructureProvider()
 {
     Mongo = Infrastructure.Default();
     Mongo.AddLocalhost(Settings.Endpoint);
     Mongo.AddMongo(Settings.MongoUrl);
 }
Exemplo n.º 9
0
 public static Infrastructure Empty()
 {
     var infra = new Infrastructure();
     infra.SearchParameters = Enumerable.Empty<ModelInfo.SearchParamDefinition>().ToList();
     return infra;
 }
Exemplo n.º 10
0
 public static Infrastructure Default()
 {
     var infra = new Infrastructure();
     infra.SearchParameters = ModelInfo.SearchParameters;
     return infra;
 }