Beispiel #1
0
 public void Delete(TResource resource)
 {
     if (resource == null)
     {
         throw new ArgumentNullException(nameof(resource));
     }
     client.Delete(resource.Links["Self"]);
 }
Beispiel #2
0
 public void Delete(TResource resource)
 {
     if (resource == null)
     {
         throw new ArgumentNullException(nameof(resource));
     }
     AssertSpaceIdMatchesResource(resource);
     client.Delete(resource.Links["Self"]);
 }
Beispiel #3
0
        public void Delete(TResource resource)
        {
            ThrowIfServerVersionIsNotCompatible();

            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            AssertSpaceIdMatchesResource(resource);
            client.Delete(resource.Links["Self"]);
        }
 public void Delete(TResource resource)
 {
     client.Delete(resource.Links["Self"]);
 }
 public void DeletePackage(PackageResource package)
 {
     client.Delete(client.RootDocument.Link("Packages"), new { id = package.Id });
 }