Esempio n. 1
0
        internal static ModelBaseInputs GetInputs(HttpRequest Request, System.Security.Principal.IPrincipal User, Uri baseUrl)
        {
            var cert   = Request.HttpContext.Connection.ClientCertificate;
            var inputs = new ModelBaseInputs(
                User,
                cert,
                Request.Method,
                new Uri(Request.GetDisplayUrl()), //RequestUri,
                baseUrl,
                Request.HttpContext.RequestServices);

            return(inputs);
        }
Esempio n. 2
0
        internal static ModelBaseInputs GetInputs(HttpRequestMessage Request, System.Security.Principal.IPrincipal User, Uri baseUrl)
        {
            var cert   = Request.GetClientCertificate();
            var inputs = new ModelBaseInputs(
                User,
                cert,
                Request.Method.Method,
                Request.RequestUri,
                baseUrl,
                Request.GetDependencyScope());

            return(inputs);
        }
Esempio n. 3
0
        internal static IFhirResourceServiceSTU3 GetResourceModel(string ResourceName, ModelBaseInputs inputs)
        {
            var model = NetCoreApi.Startup._systemService.GetResourceService(inputs, ResourceName);

            if (model != null)
            {
                return(model);
            }

            throw new FhirServerException(HttpStatusCode.NotFound, "Resource [" + ResourceName + "] is not supported on this server");
        }
Esempio n. 4
0
 internal static IFhirSystemServiceSTU3 GetSystemModel(ModelBaseInputs inputs)
 {
     return(NetCoreApi.Startup._systemService);
 }
Esempio n. 5
0
 internal static IFhirSystemServiceSTU3 GetSystemModel(ModelBaseInputs inputs)
 {
     return(WebApiConfig._systemService);
 }