Class MessageCollection<T1, T2, T3, T4, T5, T6>
A collection of messages.
Inheritance
MessageCollection<T1, T2>
MessageCollection<T1, T2, T3>
MessageCollection<T1, T2, T3, T4>
MessageCollection<T1, T2, T3, T4, T5>
MessageCollection<T1, T2, T3, T4, T5, T6>
Implements
IDisposable
Inherited Members
Namespace: Agents.Net
Assembly: Agents.Net.dll
Syntax
public class MessageCollection<T1, T2, T3, T4, T5, T6> : MessageCollection<T1, T2, T3, T4, T5>, IDisposable where T1 : Message where T2 : Message where T3 : Message where T4 : Message where T5 : Message where T6 : Message
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 | |
T4 | |
T5 | |
T6 |
Remarks
This is a helper class for the MessageCollector<T1, T2>
Constructors
| Improve this Doc View SourceMessageCollection(MessageStore<T1>, MessageStore<T2>, MessageStore<T3>, MessageStore<T4>, MessageStore<T5>, MessageStore<T6>, MessageCollector<T1, T2>)
Initialized a new instance of the class MessageCollection<T1, T2, T3, T4, T5, T6>.
Declaration
public MessageCollection(MessageStore<T1> message1, MessageStore<T2> message2, MessageStore<T3> message3, MessageStore<T4> message4, MessageStore<T5> message5, MessageStore<T6> message6, MessageCollector<T1, T2> collector)
Parameters
Type | Name | Description |
---|---|---|
MessageStore<T1> | message1 | Message of type |
MessageStore<T2> | message2 | Message of type |
MessageStore<T3> | message3 | Message of type |
MessageStore<T4> | message4 | Message of type |
MessageStore<T5> | message5 | Message of type |
MessageStore<T6> | message6 | Message of type |
MessageCollector<T1, T2> | collector | The MessageCollector<T1, T2> that produced this instance. |
Properties
| Improve this Doc View SourceMessage6
Message of type T6
.
Declaration
public T6 Message6 { get; }
Property Value
Type | Description |
---|---|
T6 |
Methods
| Improve this Doc View SourceDispose(Boolean)
Disposes all MessageStore<T>s contained in this collection
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
Overrides
Agents.Net.MessageCollection<T1, T2, T3, T4, T5>.Dispose(System.Boolean)
Remarks
This releases the usage of the message and therefore potentially disposes the contained Message. When a message is used more than once in the MessageCollector<T1, T2>, the Agent that contains the MessageCollector<T1, T2> should mark the message with DelayDispose().
GetAllMessages()
When overridden needs to return all messages in the collection.
Declaration
protected override IEnumerable<Message> GetAllMessages()
Returns
Type | Description |
---|---|
IEnumerable<Message> |
Overrides
Agents.Net.MessageCollection<T1, T2, T3, T4, T5>.GetAllMessages()
Implements
IDisposable