Ejemplo n.º 1
0
 public void Delete(TResource resource)
 {
     if (resource == null)
     {
         throw new ArgumentNullException(nameof(resource));
     }
     client.Delete(resource.Links["Self"]);
 }
Ejemplo n.º 2
0
 public void Delete(TResource resource)
 {
     if (resource == null)
     {
         throw new ArgumentNullException(nameof(resource));
     }
     AssertSpaceIdMatchesResource(resource);
     client.Delete(resource.Links["Self"]);
 }
Ejemplo n.º 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 });
 }