Ejemplo n.º 1
0
        internal static Canary15DataSegment CreateFromADData(int index)
        {
            Canary15DataSegment canary15DataSegment = new Canary15DataSegment(index);

            canary15DataSegment.ReadSegmentFromAD();
            canary15DataSegment.Trace(0, "CreateFromADData()");
            return(canary15DataSegment);
        }
Ejemplo n.º 2
0
        internal static Canary15DataSegment CreateFromLegacyData(int index, long startTime, long period, long replicationDuration)
        {
            Canary15DataSegment canary15DataSegment = new Canary15DataSegment(index);
            int num = Canary15DataSegment.adObjectIdsBinary.Length;

            canary15DataSegment.header  = new Canary15DataSegment.DataSegmentHeader(startTime, startTime, startTime, period, 1, num, replicationDuration);
            canary15DataSegment.data    = new byte[1][];
            canary15DataSegment.data[0] = new byte[num];
            Canary15DataSegment.adObjectIdsBinary.CopyTo(canary15DataSegment.data[0], 0);
            canary15DataSegment.header.ComputeState(canary15DataSegment.data);
            canary15DataSegment.Trace(0, "CreateFromLegacyData()");
            return(canary15DataSegment);
        }