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); }
public CreateOrUpdateContainerResponse CreateOrUpdateContainer(CreateOrUpdateContainerRequest request) { return(adapter.CreateOrUpdateContainer(request)); }