示例#1
0
 public void DeleteRequest(SafetyNetInfo info)
 {
     using (SafetyNetRegKeyStore safetyNetRegKeyStore = new SafetyNetRegKeyStore(this.m_dbGuidStr, this.m_dbName))
     {
         safetyNetRegKeyStore.DeleteRequest(info);
     }
 }
示例#2
0
        public SafetyNetInfo ReadRequestInfo(SafetyNetRequestKey requestKey, SafetyNetInfo prevInfo)
        {
            SafetyNetInfo result;

            using (SafetyNetRegKeyStore safetyNetRegKeyStore = new SafetyNetRegKeyStore(this.m_dbGuidStr, this.m_dbName))
            {
                result = safetyNetRegKeyStore.ReadRequestInfo(requestKey, prevInfo);
            }
            return(result);
        }
示例#3
0
 public IEnumerable <SafetyNetRequestKey> ReadRequestKeys()
 {
     string[] valueNames = null;
     using (SafetyNetRegKeyStore safetyNetRegKeyStore = new SafetyNetRegKeyStore(this.m_dbGuidStr, this.m_dbName))
     {
         valueNames = safetyNetRegKeyStore.ReadRequestKeyNames();
     }
     foreach (string valueName in valueNames)
     {
         yield return(SafetyNetRequestKey.Parse(valueName));
     }
     yield break;
 }