Exemplo n.º 1
0
        public void Load(IProtocolDeserializerContext context)
        {
            FullDependency = context.ReadBool();
            int count = context.ReadInt();

            Files = new Dictionary<string, FileFingerprint>();
            for (int i = 0; i < count; i++)
            {
                var name = context.ReadString();
                if (FullDependency)
                {
                    var date = context.ReadDateTime();
                    var size = context.ReadLong();

                    var fileFingerprint = new FileFingerprint
                    {
                        LastSize = size,
                        LastModifiedDate = date
                    };
                    Files.Add(name, fileFingerprint);
                }
                else
                {
                    Files.Add(name, new FileFingerprint());
                }
            }
        }
Exemplo n.º 2
0
        public void Load(IProtocolDeserializerContext context)
        {
            FullDependency = context.ReadBool();
            int count = context.ReadInt();

            Files = new Dictionary <string, FileFingerprint>();
            for (int i = 0; i < count; i++)
            {
                var name = context.ReadString();
                if (FullDependency)
                {
                    var date = context.ReadDateTime();
                    var size = context.ReadLong();

                    var fileFingerprint = new FileFingerprint
                    {
                        LastSize         = size,
                        LastModifiedDate = date
                    };
                    Files.Add(name, fileFingerprint);
                }
                else
                {
                    Files.Add(name, new FileFingerprint());
                }
            }
        }
Exemplo n.º 3
0
        public void Load(IProtocolDeserializerContext context)
        {
            int count = context.ReadInt();

            Items = new HashSet <IDependencyFingerprintProtocol>();
            for (int i = 0; i < count; i++)
            {
                var item = context.ReadProtocol();
                Items.Add(item);
            }
        }
Exemplo n.º 4
0
        public void Load(IProtocolDeserializerContext context)
        {
            int count = context.ReadInt();

            Items = new HashSet<IDependencyFingerprintProtocol>();
            for (int i = 0; i < count; i++)
            {
                var item = context.ReadProtocol();
                Items.Add(item);
            }
        }
Exemplo n.º 5
0
        public void Load(IProtocolDeserializerContext context)
        {
            int count = context.ReadInt();
            Values = new Dictionary<string, Tuple<object, Type>>();

            for (int i = 0; i < count; i++)
            {
                string key = context.ReadString();
                object value = context.ReadPrimitive();

                Values.Add(key, Tuple.Create(value, value != null ? value.GetType() : typeof(object)));
            }
        }
Exemplo n.º 6
0
        public void Load(IProtocolDeserializerContext context)
        {
            int count = context.ReadInt();

            Values = new Dictionary <string, Tuple <object, Type> >();

            for (int i = 0; i < count; i++)
            {
                string key   = context.ReadString();
                object value = context.ReadPrimitive();

                Values.Add(key, Tuple.Create(value, value != null ? value.GetType() : typeof(object)));
            }
        }
 public void Load(IProtocolDeserializerContext context)
 {
     Data = context.ReadString();
 }
Exemplo n.º 8
0
 public void Load(IProtocolDeserializerContext context)
 {
     Path         = context.ReadString();
     LastModified = context.ReadDateTime();
     LastSize     = context.ReadLong();
 }
Exemplo n.º 9
0
 public void Load(IProtocolDeserializerContext context)
 {
     Path = context.ReadString();
     LastModified = context.ReadDateTime();
     LastSize = context.ReadLong();
 }
Exemplo n.º 10
0
 public void Load(IProtocolDeserializerContext context)
 {
     Contract.Requires(context != null);
 }
Exemplo n.º 11
0
 public void Load(IProtocolDeserializerContext context)
 {
     Contract.Requires(context != null);
 }