Example #1
0
        public PatientService()
        {
            try
            {
                _storeAddin = AddinsFactory.CreateStoreAddin();
                _queryAddin = AddinsFactory.CreateQueryAddin();
            }
            catch (Exception ex)
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode        = HttpStatusCode.InternalServerError;
                WebOperationContext.Current.OutgoingResponse.StatusDescription = ex.Message;
                WebOperationContext.Current.OutgoingResponse.ContentType       = "application/json";

                throw;
            }
        }
Example #2
0
 public StoreService()
 {
     _addin = AddinsFactory.CreateStoreAddin();
 }
        public Layout GetSeriesLayout(string authenticationCookie, string seriesInstanceUID, string userData)
        {
            var userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanRetrieve);

            return(AddinsFactory.CreateObjectRetrieveAddin().GetSeriesLayout(userName, seriesInstanceUID, new Lazy <IStoreAddin>(() => AddinsFactory.CreateStoreAddin()), userData));
        }