public class CompositeNotificationReceiver : INotificationReceiver
Public Class CompositeNotificationReceiver Implements INotificationReceiver
public ref class CompositeNotificationReceiver : INotificationReceiver
type CompositeNotificationReceiver = class interface INotificationReceiver end
Thetype exposes the following members.
Initializes a new instance of theclass.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Processes the message.
Returns a string that represents the current object.(Inherited from Object.)
This code shows how to create CompositeNotificationReceiver and send a message:
// Create a receiver which prints notifications in UI var receiver1 = new UINotificationReceiver1(); // Create a receiver which writes notifications in the log file var receiver2 = new LoggerNotificationReceiver2(); // Create a notification message var message = NotificationMessage.CreateInformationMessage("test"); // Create a composite receiver var compositeReceiver = new CompositeNotificationReceiver(receiver1, receiver2); // Send a message to the receiver compositeReceiver.ProcessMessage(message); // message sends to receiver1 AND receiver2