public void SetServiceOperationAccessRule(string name, ServiceOperationRights rights)
 {
     this.CheckNotSealed();
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     WebUtil.CheckServiceOperationRights(rights, "rights");
     if (name == "*")
     {
         this.rightsForUnspecifiedServiceOperation = rights;
     }
     else
     {
         ServiceOperation operation;
         if (!this.provider.TryResolveServiceOperation(name, out operation) || (operation == null))
         {
             throw new ArgumentException(System.Data.Services.Strings.DataServiceConfiguration_ServiceNameNotFound(name), "name");
         }
         this.serviceOperationRights[operation.Name] = rights;
     }
 }