public void UpdateDomain(Domain domain) { try { Store.Domains.Update(domain); } catch (Exception ex) { throw CreateFault("UpdateDomain", ex); } }
public Domain AddDomain(Domain domain) { try { return Store.Domains.Add(domain); } catch (Exception ex) { throw CreateFault("AddDomain", ex); } }
internal void ApplyChanges(Domain source) { this.Status = source.Status; this.AgentName = source.AgentName; this.UpdateDate = DateTimeHelper.Now; }
internal void CopyFixed(Domain source) { this.ID = source.ID; this.CreateDate = source.CreateDate; this.Name = source.Name; this.UpdateDate = source.UpdateDate; }
public void Delete(Domain domain) { // TODO: this should be moved to the server-side implementation to hide this detail from the client new AddressManagerClient().RemoveDomainAddresses(domain.ID); Client.RemoveDomain(domain.Name); }
public Domain Update(Domain domain) { Client.UpdateDomain(domain); domain.UpdateDate = DateTimeHelper.Now; return domain; }
public Domain Add(Domain domain) { return Client.AddDomain(domain); }
public HttpResponseMessage RemoveDomain(Domain domain) { try { _configStore.Domains.Remove(domain.Name); return Request.CreateResponse(HttpStatusCode.OK); } catch (Exception ex) { _logger.Info("RemoveDomain failed with exception.", ex); return Request.CreateResponse(HttpStatusCode.InternalServerError); } }