You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Blazor.EventAggregator is a lightweight Event Aggregator for Blazor.
4
4
5
-
*25.9.2019: Updated to work with .NET Core v3.0.0*
5
+
* 3/2020: Updated to work with .NET Core v3.1.0
6
6
7
7
Event aggregator is used for indirect component to component communication. In event aggregator pattern you have message/event publishers and subscribers. In the case of Blazor, component can publish its events and other component(s) can react to those events.
8
8
@@ -16,11 +16,11 @@ Also note that the library has only been tested with the server-side version of
16
16
17
17
## Getting Started
18
18
19
-
First register EventAggregator as singleton in app’s ConfigureServices:
19
+
First register EventAggregator in app’s ConfigureServices:
20
20
```
21
21
public void ConfigureServices(IServiceCollection services)
@@ -104,6 +104,16 @@ public class CounterListenerComponent : ComponentBase, IHandle<CounterIncreasedM
104
104
}
105
105
}
106
106
```
107
+
108
+
## Note about auto refresh
109
+
110
+
The library can try to automatically call subscriber component's StateHasChanged after it has handled the event. By default this functionality is disabled. You can enable it through options:
0 commit comments