Show / Hide Table of Contents

Class StreamMessage

Represents message which content is represented by Stream.

Inheritance
object
Disposable
StreamTransferObject
StreamMessage
Implements
IDisposableMessage
IMessage
IDataTransferObject
IDisposable
IAsyncDisposable
Inherited Members
StreamTransferObject.LoadFromAsync(IDataTransferObject, CancellationToken)
StreamTransferObject.TransformAsync<TResult, TTransformation>(TTransformation, CancellationToken)
StreamTransferObject.Dispose(bool)
StreamTransferObject.DisposeAsyncCore()
StreamTransferObject.DisposeAsync()
StreamTransferObject.IsReusable
Disposable.CreateException()
Disposable.GetDisposedTask<T>()
Disposable.TrySetDisposedException<T>(TaskCompletionSource<T>)
Disposable.TrySetDisposedException(TaskCompletionSource)
Disposable.TryBeginDispose()
Disposable.Dispose()
Disposable.Dispose(IEnumerable<IDisposable>)
Disposable.DisposeAsync(params IEnumerable<IAsyncDisposable>)
Disposable.Dispose<TDisposable>(params ReadOnlySpan<TDisposable>)
Disposable.IsDisposed
Disposable.IsDisposing
Disposable.IsDisposingOrDisposed
Disposable.DisposedTask
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public class StreamMessage : StreamTransferObject, IDisposableMessage, IMessage, IDataTransferObject, IDisposable, IAsyncDisposable

Constructors

View Source

StreamMessage(Stream, bool, string, ContentType?)

Represents message which content is represented by Stream.

Declaration
public StreamMessage(Stream content, bool leaveOpen, string name, ContentType? type = null)
Parameters
Type Name Description
Stream content

The message content.

bool leaveOpen

true to leave the stream open after StreamMessage object is disposed; otherwise, false.

string name

The name of the message.

ContentType type

Media type of the message.

Properties

View Source

Name

Gets name of this message.

Declaration
public string Name { get; }
Property Value
Type Description
string
View Source

Type

Gets media type of this message.

Declaration
public ContentType Type { get; }
Property Value
Type Description
ContentType

Implements

IDisposableMessage
IMessage
IDataTransferObject
IDisposable
IAsyncDisposable

Extension Methods

Messenger.ReadAsTextAsync(IMessage, CancellationToken)
BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾