mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-22 01:26:20 +08:00
82ed6c8ca8
- Currently the `IEncoder`/`IDecoder` interface is not disposable, which makes it difficult to use the interfaces with `using`. Only the implementations are derived from `IDisposable` - Change: Moved the `IDisposable` interface from implementations to the IEncoder/IDecoder - To fully support the use of the interfaces across the codebase new methods are added: `Close` and `CloseAndReturnAsText` - Breaking change: In the `XmlEncoder` the `Close` method which returns an encoded string is renamed to `CloseAndReturnAsText` - Refactor codebase to use `using` with IEncoder/IDecoder across the board. Use interfaces where possible. - To support streaming better with `ArraySegmentStream`, derive this class from `MemoryStream` and implement `ToArray`