public ReportingStream(Stream stream, ReadNotification DataRead, object DataReadArg, double reportPercentage)
 {
     this.s = stream;
     this.haveRead = DataRead;
     this.arg = DataReadArg;
     this.reportHurdle = (int)(reportPercentage * stream.Length);
 }
Esempio n. 2
0
        public ReadNotificationController(ReadNotification readNotification)
        {
            if (readNotification == null)
            {
                throw new ArgumentNullException(nameof(readNotification));
            }

            this.readNotification = readNotification;
        }
Esempio n. 3
0
 public async Task <ActionResult> GetCustomer(string include)
 {
     if (include == "logs")
     {
         var result = new ReadNotificationWithLog();
         return(Ok(await _mediatr.Send(result)));
     }
     else
     {
         var result = new ReadNotification();
         return(Ok(await _mediatr.Send(result)));
     }
 }
Esempio n. 4
0
        public async Task <ActionResult <ReadNotificationDto> > GetCustomer()
        {
            var result = new ReadNotification();

            return(Ok(await _mediatr.Send(result)));
        }
 public ReportingStream(Stream stream, ReadNotification DataRead, object DataReadArg)
     : this(stream, DataRead, DataReadArg, .01)
 {
 }