Table of Contents

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

stream Stream

The 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

report ScreenplayReport

A Screenplay report.

Returns

Task<Stream>

A task that represents the asynchronous operation. The task result contains the serialized report stream.