コード例 #1
0
        public static Business.DeleteContainerResult TranslateFromServiceToBusiness(DataContracts.DeleteContainerResult serviceItem)
        {
            if (serviceItem == null)
            {
                return(null);
            }

            Business.DeleteContainerResult businessItem = new Business.DeleteContainerResult();

            return(businessItem);
        }
コード例 #2
0
        public DeleteContainerResponse DeleteContainer(DeleteContainerRequest request)
        {
            lock (deleteContainerActionLock)
            {
                if (deleteContainerAction == null)
                {
                    deleteContainerAction = PolicyInjection.Create <BusinessActions.DeleteContainerAction>();
                }
            }

            request.DeleteContainerParameters.ContainerName = GetUserContainerName(request.DeleteContainerParameters.ContainerName);

            BusinessEntities.DeleteContainerParameters parameters = DeleteContainerParametersTranslator.TranslateFromServiceToBusiness(request.DeleteContainerParameters);
            BusinessEntities.DeleteContainerResult     result     = deleteContainerAction.Execute(parameters);

            DeleteContainerResponse response = new DeleteContainerResponse();

            response.DeleteContainerResult = DeleteContainerResultTranslator.TranslateFromBusinessToService(result);

            return(response);
        }
コード例 #3
0
        public static DataContracts.DeleteContainerResult TranslateFromBusinessToService(Business.DeleteContainerResult businessItem)
        {
            if (businessItem == null)
            {
                return(null);
            }

            DataContracts.DeleteContainerResult serviceItem = new DataContracts.DeleteContainerResult();

            return(serviceItem);
        }