Exemplo n.º 1
0
 protected FileBasedDevice(int id, string fileNamePrefix) : base(id)
 {
     mFileNamePrefix              = fileNamePrefix;
     mFilePath                    = null;
     StreamStatus                 = new StreamStatus();
     StreamStatus.ReportingEvent += StreamStatus_Reporting;
 }
Exemplo n.º 2
0
                public override bool Tick()
                {
                    if (StreamStatus.Stream == null)
                    {
                        return(true);
                    }

                    try
                    {
                        var writer = new StreamWriter(StreamStatus.Stream, Encoding.ASCII);
                        writer.WriteLine();
                        writer.WriteLine("===================== PAGE BREAK ===================== PAGE BREAK ===================== PAGE BREAK =====================");
                        writer.WriteLine();
                        writer.Flush();
                        StreamStatus.UpdatePosition();
                    }
                    catch (Exception exception)
                    {
                        OnReportingEvent(new ReportingEventArgs(Severity.Error, "exception while writing file " + StreamStatus.FileName + ": " + exception.Message));
                    }

                    return(true);
                }
Exemplo n.º 3
0
 public override StreamStep.Instance CreateStreamInstance(StreamStatus streamStatus) => new Instance(streamStatus);
Exemplo n.º 4
0
 public Instance(StreamStatus streamStatus) : base(streamStatus)
 {
 }
Exemplo n.º 5
0
 public Instance(StreamStatus streamStatus) : base(streamStatus)
 {
     mTicksLeft = unset;
 }