Class ScreenplayReportSerializer
- Namespace
- CSF.Screenplay.Reporting
- Assembly
- CSF.Screenplay.dll
Implementation of IDeserializesReport and ISerializesReport which serializes and/or deserializes a Screenplay report to/from a JSON stream.
public class ScreenplayReportSerializer : IDeserializesReport, ISerializesReport
- Inheritance
-
ScreenplayReportSerializer
- Implements
- Inherited Members
Methods
DeserializeAsync(Stream)
Deserializes a Screenplay report from the provided stream asynchronously.
public Task<ScreenplayReport> DeserializeAsync(Stream stream)
Parameters
streamStreamThe stream containing the serialized Screenplay report.
Returns
- Task<ScreenplayReport>
A task that represents the asynchronous operation. The task result contains the deserialized Screenplay report.
SerializeAsync(ScreenplayReport)
Serializes a Screenplay report into a stream asynchronously.
public Task<Stream> SerializeAsync(ScreenplayReport report)
Parameters
reportScreenplayReportA Screenplay report.