Exemplo n.º 1
0
 public void Claim(string registryName)
 {
     if (IsClaimed && !ClaimingRegistry.Equals(registryName, StringComparison.OrdinalIgnoreCase))
     {
         throw new InvalidOperationException("The registry '" + registryName + "' cannot claim the resource requriment '" + VirtualPath + "' because it has already been claimed by another registry ('" + ClaimingRegistry + "').");
     }
     ClaimingRegistry = registryName;
 }
Exemplo n.º 2
0
 public bool IsClaimedBy(string registryName)
 {
     return(IsClaimed && ClaimingRegistry.Equals(registryName, StringComparison.OrdinalIgnoreCase));
 }