mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-29 12:06:51 +00:00
WIP
This commit is contained in:
1 parent
10939f144c
commit
915a6c1088
3 files changed
+5
-5
No files matched your search
@@ -119,10 +119,10 @@ public partial class MyService
|
||||
int MyPasscode = 2025;
|
||||
public PropertyContext<int> Passcode
|
||||
{
|
||||
get => new((sender) => sender.Session.AuthorizedAccount == "alice" ? MyPasscode : 0);
|
||||
get => new((sender) => sender.Session.AuthorizedIdentity == "alice" ? MyPasscode : 0);
|
||||
set
|
||||
{
|
||||
if (value.Connection.Session.AuthorizedAccount != "alice")
|
||||
if (value.Connection.Session.AuthorizedIdentity != "alice")
|
||||
throw new Exception("Only Alice is allowed.");
|
||||
MyPasscode = value.Value;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user