File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
UI/MVUX/src/MVUX/Presentation/IMessengerSample Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace MVUX . Presentation . IMessengerSample ;
4
4
5
- public partial record MessagingModel
5
+ public partial record MessagingModel ( IPeopleService PeopleService , IMessenger Messenger )
6
6
{
7
- protected IPeopleService PeopleService { get ; }
7
+ public IListState < Person > People => ListState
8
+ . Async ( this , PeopleService . GetPeople )
9
+ . Selection ( SelectedPerson )
10
+ . Observe ( Messenger , person => person . Id ) ;
8
11
9
- public MessagingModel ( IPeopleService peopleService , IMessenger messenger )
10
- {
11
- PeopleService = peopleService ;
12
-
13
- messenger . Observe ( People , person => person . Id ) ;
14
- }
15
-
16
- public IListState < Person > People =>
17
- ListState
18
- . Async ( this , PeopleService . GetPeople )
19
- . Selection ( SelectedPerson ) ;
20
-
21
- public IState < Person > NewPerson => State < Person > . Empty ( this ) ;
12
+ public IState < Person > NewPerson => State < Person > . Empty ( this ) ;
22
13
23
14
public IState < Person > SelectedPerson => State < Person > . Empty ( this ) ;
24
15
You can’t perform that action at this time.
0 commit comments