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); }
public ReadNotificationController(ReadNotification readNotification) { if (readNotification == null) { throw new ArgumentNullException(nameof(readNotification)); } this.readNotification = readNotification; }
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))); } }
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) { }