Class StreamFromPrism
- Namespace
- Phoesion.Glow.SDK.Firefly
- Assembly
- Phoesion.Glow.SDK.Firefly.Abstractions.dll
public sealed class StreamFromPrism : IHasContentType, IHasHeaders
- Inheritance
-
object
StreamFromPrism
- Implements
-
Constructors
StreamFromPrism()
StreamFromPrism(string)
public StreamFromPrism(string sourceUri)
Parameters
sourceUri string
StreamFromPrism(string, string?)
public StreamFromPrism(string sourceUri, string? contentType)
Parameters
sourceUri string
contentType string
StreamFromPrism(string, string?, string?)
public StreamFromPrism(string sourceUri, string? contentType, string? fileName)
Parameters
sourceUri string
contentType string
fileName string
StreamFromPrism(Uri)
public StreamFromPrism(Uri sourceUri)
Parameters
sourceUri Uri
StreamFromPrism(Uri, string?)
public StreamFromPrism(Uri sourceUri, string? contentType)
Parameters
sourceUri Uri
contentType string
StreamFromPrism(Uri, string?, string?)
public StreamFromPrism(Uri sourceUri, string? contentType, string? fileName)
Parameters
sourceUri Uri
contentType string
fileName string
Properties
ContentLength
public long? ContentLength { get; set; }
Property Value
- long?
ContentType
public string? ContentType { get; set; }
Property Value
- string
public Dictionary<string, StringValues> Headers { get; init; }
Property Value
- Dictionary<string, StringValues>
SourceUri
public Uri? SourceUri { get; set; }
Property Value
- Uri
public Dictionary<string, StringValues>? SourceUriHeaders { get; init; }
Property Value
- Dictionary<string, StringValues>
Methods
AsAttachment(string)
public StreamFromPrism AsAttachment(string fileName = null)
Parameters
fileName string
Returns
- StreamFromPrism
WithCacheControl(TimeSpan?)
public StreamFromPrism WithCacheControl(TimeSpan? maxAge)
Parameters
maxAge TimeSpan?
Returns
- StreamFromPrism
WithContentLength(long?)
public StreamFromPrism WithContentLength(long? length)
Parameters
length long?
Returns
- StreamFromPrism
WithContentType(string)
public StreamFromPrism WithContentType(string contentType)
Parameters
contentType string
Returns
- StreamFromPrism
public StreamFromPrism WithHeader(string key, StringValues values)
Parameters
key string
values StringValues
Returns
- StreamFromPrism
public StreamFromPrism WithHeaders(IDictionary<string, StringValues> headers)
Parameters
headers IDictionary<string, StringValues>
Returns
- StreamFromPrism
public StreamFromPrism WithSourceUriHeader(IDictionary<string, StringValues> headers)
Parameters
headers IDictionary<string, StringValues>
Returns
- StreamFromPrism
public StreamFromPrism WithSourceUriHeader(string key, StringValues values)
Parameters
key string
values StringValues
Returns
- StreamFromPrism