Return IMessage from Message.FromPayload/FromError
Return IMessage from Message.FromPayload/FromError

Returning an IMessage simplifies a common pattern when implementing
service methods.

Code like the following needed to be written to get Message<T> to
convert to an IMessage<T> for use in a Task<>.

    public Task<IMessage<Foo>> DoFooAsync()
    {
        Foo someFoo = MakeAFoo();
        IMessage<Foo> somePayload = Message.FromPayload(someFoo);
        return Task.FromResult(somePayload)
    }

This can now be written in a simpler way:

    public Task<IMessage<Foo>> DoFooAsync()
    {
        Foo someFoo = MakeAFoo();
        return Task.FromResult(Message.FromPayload(someFoo))
    }

chwarr/bond,ant0nsc/bond,Microsoft/bond,sapek/bond,jdubrule/bond,chwarr/bond,gencer/bond,gencer/bond,tstein/bond,chwarr/bond,tstein/bond,chwarr/bond,Microsoft/bond,Microsoft/bond,gencer/bond,jdubrule/bond,ant0nsc/bond,sapek/bond,gencer/bond,Microsoft/bond,jdubrule/bond,ant0nsc/bond,tstein/bond,Microsoft/bond,sapek/bond,gencer/bond,tstein/bond,jdubrule/bond,ant0nsc/bond,tstein/bond,Microsoft/bond,sapek/bond,chwarr/bond,tstein/bond,jdubrule/bond,sapek/bond,chwarr/bond,sapek/bond,jdubrule/bond