예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 public virtual void StatusNotification(StatusNotificationReport report)
 {
     ProcessAgentDB dbTicketing = new ProcessAgentDB();
     if (dbTicketing.AuthenticateAgentHeader(agentAuthHeader))
     {
         // No default processing of the StatusNotification message has been specified
     }
 }
예제 #4
0
 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;
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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;
 }
예제 #7
0
 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;
        }