C# Class Foundation.IMessagerObjectExt

Extends IMessengerObject with two static publish extension methods
Datei anzeigen Open project: NVentimiglia/Unity3d-Foundation

Public Methods

Method Description
Publish ( this message ) : void

Publishes the object via Messenger.SendMessage.

Publish ( this message, object ignore ) : void

Publishes the object via Messenger.SendMessage.

PublishAndCache ( this message ) : void

Publishes the message to most delegates listening to this message. Caches the message for late subscribers

PublishAndCache ( this message, object ignore ) : void

Publishes the object via Messenger.SendMessage. and caches it

RemoveCache ( this message ) : void

Removes the message from the cache

Method Details

Publish() public static method

Publishes the object via Messenger.SendMessage.
public static Publish ( this message ) : void
message this the message
return void

Publish() public static method

Publishes the object via Messenger.SendMessage.
public static Publish ( this message, object ignore ) : void
message this the message
ignore object Ignores all delegates member to this instance.
return void

PublishAndCache() public static method

Publishes the message to most delegates listening to this message. Caches the message for late subscribers
public static PublishAndCache ( this message ) : void
message this the message
return void

PublishAndCache() public static method

Publishes the object via Messenger.SendMessage. and caches it
public static PublishAndCache ( this message, object ignore ) : void
message this the message
ignore object Object instance to ignore when sending. Used to prevent recursive calls.
return void

RemoveCache() public static method

Removes the message from the cache
public static RemoveCache ( this message ) : void
message this the message
return void