public void DeleteRegistration(string partitionKey, string rowKey, string etag, RegistrationType registrationType) { string tableName = string.Empty; TableEntity entity = null; switch (registrationType.ToString()) { case "LpAux": tableName = Utils.GetRegionalTableName(Microsoft.Whitespace.Entities.Constants.LPAuxRegistrationTable); entity = this.azureTableOperations.FetchEntity <LPAuxRegistration>(partitionKey, rowKey, tableName); break; case "TBas": tableName = Utils.GetRegionalTableName(Microsoft.Whitespace.Entities.Constants.TempBasRegistrationTableName); entity = this.azureTableOperations.FetchEntity <TempBASRegistration>(partitionKey, rowKey, tableName); break; case "Mvpd": tableName = Utils.GetRegionalTableName(Microsoft.Whitespace.Entities.Constants.MVPDRegistrationTableName); entity = this.azureTableOperations.FetchEntity <MVPDRegistration>(partitionKey, rowKey, tableName); break; } if (entity != null) { this.azureTableOperations.DeleteEntity(tableName, entity); } }
public override byte[] ToByteArray() { return(ToByteArray(new List <string>() { ClientType.ToString(), RegistrationType.ToString(), Channel }.ToArray())); }
private static bool IsDemoExpired() { Event clsEvent = new Event(); try { clsEvent.AddEvent("Checking if product is demo and has expired. "); AceSoft.RetailPlus.Key clsKey = new AceSoft.RetailPlus.Key(); string SerialNumber = null; RegistrationType regIsDemoExpired = clsKey.IsDemoExpired(out SerialNumber); bool boIsDemoExpired = false; switch (regIsDemoExpired) { case RegistrationType.Error: boIsDemoExpired = true; break; case RegistrationType.DEMO_Unexpired: boIsDemoExpired = false; break; case RegistrationType.DEMO_Expired: boIsDemoExpired = true; break; case RegistrationType.Registered: clsEvent.AddEventLn("Done! Product is registered to HD Serial No: " + SerialNumber); return(false); default: boIsDemoExpired = false; break; } clsEvent.AddEventLn("Done! return code: " + regIsDemoExpired.ToString("G") + " for HDD: " + SerialNumber); return(boIsDemoExpired); } catch (Exception ex) { clsEvent.AddErrorEventLn(ex); return(false); } }
// f_lock_domain // affiliate_id // comments public override Dictionary <string, object> GetParameters() { var data = new Dictionary <string, object> { { "auto_renew", AutoRenew ? "1" : "0" }, { "contact_set", Contacts.ToAssocEl() }, { "custom_nameservers", CustomNameservers ? "1" : "0" }, { "custom_tech_contact", CustomTechContact ? "1" : "0" }, { "f_lock_domain", LockDomain ? "1" : "0" }, { "domain", Domain }, { "handle", ProcessImmediately ? "process" : "save" }, { "period", Period }, { "reg_username", UserName }, { "reg_password", Password }, { "reg_type", RegistrationType.ToString().ToLower() }, { "f_whois_privacy", WhoisPrivacy ? "1" : "0" } }; if (DnsTemplate != null) { data["dns_template"] = DnsTemplate; } return(data); }