Пример #1
0
    public static void load(LocalIOManager persist, out Dictionary <int, int> HttpDataNo)
    {
        HttpDataNo = new Dictionary <int, int>();

        HttpData_No db = persist.ReadFromLocalFileSystem(DataType.HTTP_COMPLETE, DataObject.Relevant.AccountRelevant, AES_ENCRYPT) as HttpData_No;

        if (db != null)
        {
            foreach (HttpDataNoElement element in db.httpNo)
            {
                HttpDataNo.Add(element.act, element.no);
            }
        }
    }
    void ICore.Dispose()
    {
        List <HttpDataNoElement> list = new List <HttpDataNoElement>();

        foreach (int key in HttpDataNo.Keys)
        {
            list.Add(new HttpDataNoElement(HttpDataNo[key], key));
        }
        if (list.Count > 0)
        {
            HttpData_No completness = new HttpData_No();
            completness.save(persistManager, list.ToArray());
        }
    }
    void ICore.Reset()
    {
        List <HttpDataNoElement> list = new List <HttpDataNoElement>();

        foreach (int key in HttpDataNo.Keys)
        {
            list.Add(new HttpDataNoElement(HttpDataNo[key], key));
        }

        if (list.Count > 0)
        {
            HttpData_No completness = new HttpData_No();
            completness.save(persistManager, list.ToArray());
        }

        if (HttpDataNo != null)
        {
            HttpDataNo.Clear();
            HttpDataNo = null;
        }

        persistManager = null;
    }
Пример #4
0
 public HttpData_Completeness(LocalIOManager persist)
 {
     persistManager = persist;
     HttpData_No.load(persistManager, out HttpDataNo);
 }