public override int ModifyDomainCredentials(string originalGuid, ProcessAgent agent, string extra, Coupon inCoupon, Coupon outCoupon) { int status = 0; if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { BrokerDB brokerDB = new BrokerDB(); status = brokerDB.ModifyDomainCredentials(originalGuid, agent, inCoupon, outCoupon, extra); //Notify all ProcessAgents about the change ProcessAgentInfo[] domainServices = dbTicketing.GetProcessAgentInfos(); ProcessAgentProxy proxy = null; foreach (ProcessAgentInfo pi in domainServices) { // Do not send if retired this service or the service being modified since this is if (!pi.retired && (pi.agentGuid.CompareTo(ProcessAgentDB.ServiceGuid) != 0) && (pi.agentGuid.CompareTo(agent.agentGuid) != 0)) { proxy = new ProcessAgentProxy(); proxy.AgentAuthHeaderValue = new AgentAuthHeader(); proxy.AgentAuthHeaderValue.agentGuid = ProcessAgentDB.ServiceGuid; proxy.AgentAuthHeaderValue.coupon = pi.identOut; proxy.Url = pi.webServiceUrl; status += proxy.ModifyDomainCredentials(originalGuid, agent, extra, inCoupon, outCoupon); } } } return status; }