public virtual bool CancelTicket(Coupon coupon, string type, string redeemer) { bool status = false; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { if (ProcessAgentDB.ServiceGuid.Equals(redeemer)) { status = dbTicketing.DeleteTicket(coupon, type, ProcessAgentDB.ServiceGuid); } else { status = false; } } return status; }
public virtual int RetireProcessAgent(string domainGuid, string serviceGuid, bool state) { int status = 0; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { status = retireProcessAgent(domainGuid, serviceGuid, state); } return status; }
public virtual void StatusNotification(StatusNotificationReport report) { ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { // No default processing of the StatusNotification message has been specified } }
public int RemoveDomainCredentials(string domainGuid, string serviceGuid) { int status = -1; DomainCredentials returnCred = null; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { status = removeDomainCredentials(domainGuid, serviceGuid); } return status; }
public void Register(string registerGuid, ServiceDescription[] info) { ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { // This is an optional method, the base method is a no-op. register(registerGuid, info); } }
public virtual int ModifyProcessAgent(string originalGuid, ProcessAgent agent, string extra) { int status = 0; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { status = dbTicketing.ModifyProcessAgent(originalGuid, agent, extra); } return status; }
public virtual int ModifyDomainCredentials(string originalGuid, ProcessAgent agent, string extra, Coupon inCoupon, Coupon outCoupon) { int status = 0; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { status = dbTicketing.ModifyDomainCredentials(originalGuid, agent, inCoupon, outCoupon, extra); } return status; }
public int RemoveUSSInfo(string ussGuid, string ussName, string ussUrl, Coupon coupon) { int status = 0; ProcessAgentDB dbTicketing = new ProcessAgentDB(); if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader)) { } return status; }