コード例 #1
0
        public CreateOrUpdateContainerResponse CreateOrUpdateContainer(CreateOrUpdateContainerRequest request)
        {
            lock (createOrUpdateContainerActionLock)
            {
                if (createOrUpdateContainerAction == null)
                {
                    createOrUpdateContainerAction = PolicyInjection.Create <BusinessActions.CreateOrUpdateContainerAction>();
                }
            }

            request.CreateOrUpdateContainerParameters.Container.Name = GetUserContainerName(request.CreateOrUpdateContainerParameters.Container.Name);

            BusinessEntities.CreateOrUpdateContainerParameters parameters = CreateOrUpdateContainerParametersTranslator.TranslateFromServiceToBusiness(request.CreateOrUpdateContainerParameters);
            BusinessEntities.CreateOrUpdateContainerResult     result     = createOrUpdateContainerAction.Execute(parameters);

            CreateOrUpdateContainerResponse response = new CreateOrUpdateContainerResponse();

            response.CreateOrUpdateContainerResult = CreateOrUpdateContainerResultTranslator.TranslateFromBusinessToService(result);

            return(response);
        }
コード例 #2
0
 public CreateOrUpdateContainerResponse CreateOrUpdateContainer(CreateOrUpdateContainerRequest request)
 {
     return(adapter.CreateOrUpdateContainer(request));
 }