@@ -23,16 +23,16 @@ public AccountRegistry_Naive(Func<Guid, Task<Option<AccountState>>> loadAccount
23
23
{
24
24
AccountProcess account ;
25
25
if ( cache . TryGetValue ( id , out account ) )
26
- return Tuple ( cache , Some ( account ) ) ;
26
+ return ( cache , Some ( account ) ) ;
27
27
28
28
var optAccount = await loadAccount ( id ) ;
29
29
30
30
return optAccount . Map ( accState =>
31
31
{
32
32
var process = new AccountProcess ( accState , saveAndPublish ) ;
33
- return Tuple ( cache . Add ( id , process ) , Some ( process ) ) ;
33
+ return ( cache . Add ( id , process ) , Some ( process ) ) ;
34
34
} )
35
- . GetOrElse ( ( ) => Tuple ( cache , ( Option < AccountProcess > ) None ) ) ;
35
+ . GetOrElse ( ( ) => ( cache , ( Option < AccountProcess > ) None ) ) ;
36
36
} ) ;
37
37
}
38
38
@@ -59,14 +59,14 @@ public AccountRegistry(Func<Guid, Task<Option<AccountState>>> loadAccount
59
59
this . agent = Agent . Start ( AccountsCache . Empty , ( AccountsCache cache , Msg msg ) =>
60
60
new Pattern < ValueTuple < AccountsCache , Option < AccountProcess > >>
61
61
{
62
- ( LookupMsg m ) => Tuple ( cache , cache . Lookup ( m . Id ) ) ,
62
+ ( LookupMsg m ) => ( cache , cache . Lookup ( m . Id ) ) ,
63
63
64
64
( RegisterMsg m ) => cache . Lookup ( m . Id ) . Match (
65
- Some : acc => Tuple ( cache , Some ( acc ) ) ,
65
+ Some : acc => ( cache , Some ( acc ) ) ,
66
66
None : ( ) =>
67
67
{
68
68
var account = new AccountProcess ( m . AccountState , saveAndPublish ) ;
69
- return Tuple ( cache . Add ( m . Id , account ) , Some ( account ) ) ;
69
+ return ( cache . Add ( m . Id , account ) , Some ( account ) ) ;
70
70
} )
71
71
}
72
72
. Match ( msg ) ) ;
0 commit comments