-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
Quick Description
Having Message.Create(tag, serializable) and Message.Create(tag, writer) is imho not enough.
Explanation
Right now we are limited and we have to use Message.Create(tag, writer) like this:
using (var writer = DarkRiftWriter.Create())
{
writer.Write(messageContents);
using (var message = Message.Create(tag, writer))
{
recipient.SendMessage(message, mode);
}
}
It would be much more convenient to be able to achieve the same with less amount of code:
using (var message = Message.Create(tag, contents))
{
recipient.SendMessage(message, mode);
}
We would just need to add more overloads for Message.Create. And I would suggest to have all those that the DarkRiftWriter has.
Thanks for consideration!
Metadata
Metadata
Assignees
Labels
No labels