Class WeakEventSource<TEventArgs>
Class WeakEventSource.
Inheritance
System.Object
WeakEventSource<TEventArgs>
Namespace: ISynergy.Framework.Core.Events
Assembly: ISynergy.Framework.Core.dll
Syntax
public class WeakEventSource<TEventArgs> : object
Type Parameters
| Name | Description |
|---|---|
| TEventArgs | The type of the t event arguments. |
Constructors
View SourceWeakEventSource()
Initializes a new instance of the WeakEventSource<TEventArgs> class.
Declaration
public WeakEventSource()
Methods
View SourceRaise(Object, TEventArgs)
Raises the specified sender.
Declaration
public void Raise(object sender, TEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The sender. |
| TEventArgs | e | The instance containing the event data. |
Subscribe(EventHandler<TEventArgs>)
Subscribes the specified handler.
Declaration
public void Subscribe(EventHandler<TEventArgs> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| EventHandler<TEventArgs> | handler | The handler. |
Unsubscribe(EventHandler<TEventArgs>)
Unsubscribes the specified handler.
Declaration
public void Unsubscribe(EventHandler<TEventArgs> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| EventHandler<TEventArgs> | handler | The handler. |