public void WriteXml(XmlWriter w)
 {
     w.WriteElementString("CompositeType", CompositeType.ToString());
     w.WriteElementString("ImageCount", ImageCount.ToString(CultureInfo.InvariantCulture));
     w.WriteElementString("RefreshRate", RefreshRate.ToString(CultureInfo.InvariantCulture));
     w.WriteElementString("Start", Start.ToString(CultureInfo.InvariantCulture));
     w.WriteElementString("Interval", Interval.ToString(CultureInfo.InvariantCulture));
 }
Exemple #2
0
        public object Get(ImageCount request)
        {
            var resp = new Dto <long>();

            resp.Result = Handler.Count(request.IncludeDeleted);

            return(resp);
        }
Exemple #3
0
        public byte[] Serialize()
        {
            var bytes = new List <byte>();

            bytes.AddRange(Etag.ToBytes(24));
            bytes.AddRange(Station.ToBytes());
            bytes.AddRange(Lane.ToBytes());
            bytes.AddRange(TicketId.ToBytes());
            bytes.AddRange(((int)Status).ToBytes());
            bytes.AddRange(Plate.ToBytes(10));
            bytes.AddRange(ImageCount.ToBytes());
            bytes.AddRange(VehicleLength.ToBytes());
            return(bytes.ToArray());
        }
Exemple #4
0
 public virtual string Serialize(bool withPrefix)
 {
     return(ObjectSerializer.Serialize((withPrefix ? this : null), Path, RootFolder.ID, ScanDateStr, ImageCount.ToString(), VideoCount.ToString()));
 }
Exemple #5
0
 public override string Serialize(bool withPrefix)
 {
     return(ObjectSerializer.Serialize((withPrefix ? this : null), base.Serialize(false), ImageCount.ToString(), VideoCount.ToString()));
 }
 public HomeController(ImageStore imageStore, ImageCount imageCount, ConnectionMultiplexer redisConnection)
 {
     _imageStore      = imageStore;
     _imageCount      = imageCount;
     _redisConnection = redisConnection;
 }