mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 12:43:17 +00:00
Working
This commit is contained in:
@@ -159,8 +159,8 @@ public partial class MyService
|
||||
[Export]
|
||||
public void InvokeEvents(string msg, InvocationContext context)
|
||||
{
|
||||
if (context.Connection.Session.AuthorizedAccount != "Alice")
|
||||
throw new Exception("Only Alice is allowed.");
|
||||
//if (context.Connection.Session.AuthorizedAccount != "Alice")
|
||||
// throw new Exception("Only Alice is allowed.");
|
||||
|
||||
StringEvent?.Invoke(msg);
|
||||
ArrayEvent?.Invoke(new object[] { DateTime.UtcNow, "Event", msg });
|
||||
|
Reference in New Issue
Block a user