mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:16:34 +00:00
d320d6dd59
Made-with: Cursor
812 B
812 B
Module: Azaion.Common.Extensions.StreamExtensions
Purpose
Stream-to-string conversion utility.
Public Interface
| Method | Signature | Description |
|---|---|---|
ConvertToString |
static string ConvertToString(this Stream stream) |
Reads entire stream as UTF-8 string, resets position to 0 afterward |
Internal Logic
Resets stream position to 0, reads via StreamReader, then resets again so the stream remains usable.
Dependencies
System.Text.Encoding,System.IO.StreamReader(BCL only)
Consumers
SecurityTest.EncryptDecryptTest— converts decrypted stream to string for assertion
Data Models
None.
Configuration
None.
External Integrations
None.
Security
None.
Tests
Indirectly tested via SecurityTest.EncryptDecryptTest.