// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace CommunityToolkit.Mvvm.Messaging; /// /// An interface for a recipient that declares a registration for a specific message type. /// /// The type of message to receive. public interface IRecipient where TMessage : class { /// /// Receives a given message instance. /// /// The message being received. void Receive(TMessage message); }