Exemplo n.º 1
0
    public void SerializeTestLogBig()
    {
        var input = new TestLogBig();

        input.Child("test");
        _serializer.Save(Call, input);
        TestLogBig output = _serializer.Load <TestLogBig>(Call);
    }
Exemplo n.º 2
0
    public void CloneTestLogBig()
    {
        var testLog = new TestLogBig();

        testLog.Child("test");

        var output = _serializer.Clone(log, testLog);
    }
Exemplo n.º 3
0
    // Todo: use caller instead
    public void Child(string name)
    {
        var logEntry = new TestLogBig();

        //log.Type = logType;
        //logEntry = new Log(context, contextID, settings, "replacing log with local", new Tag[] { });
        if (Items == null)
        {
            Items = new ItemCollection <TestLogBig>();
        }
        //if (Items.Count > settings.MaxLogItems)
        //	Items.RemoveAt(0);
        Items.Add(logEntry);
    }