public RemoveConfigurationDocumentResponse RemoveConfigurationDocument(RemoveConfigurationDocumentRequest request)
			{
				throw new NotImplementedException();
			}
示例#2
0
		public RemoveConfigurationDocumentResponse RemoveConfigurationDocument(RemoveConfigurationDocumentRequest request)
		{
			Platform.CheckForNullReference(request, "request");
			Platform.CheckMemberIsSet(request.DocumentKey, "DocumentKey");

			CheckWriteAccess(request.DocumentKey);

			try
			{
				var broker = PersistenceContext.GetBroker<IConfigurationDocumentBroker>();
				var criteria = BuildDocumentKeyCriteria(request.DocumentKey);
				var document = broker.FindOne(criteria);
				broker.Delete(document);
			}
			catch (EntityNotFoundException)
			{
				// no document - nothing to remove
			}

			return new RemoveConfigurationDocumentResponse();
		}