/// <summary> /// Sends the given message to all subscribers (asynchonous processing). /// The returned task waits for all synchronous subscriptions. /// </summary> /// <typeparam name="MessageType">The type of the message.</typeparam> public Task PublishAsync <MessageType>() where MessageType : SeeingSharpMessage, new() { return(m_syncContext.PostAlsoIfNullAsync( () => Publish <MessageType>(), ActionIfSyncContextIsNull.InvokeUsingNewTask)); }