2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-03 20:08:21 +00:00
This commit is contained in:
2026-04-02 19:42:54 +03:00
parent 4fae21deaf
commit 74830eea0c
82 changed files with 2501 additions and 3008 deletions

View File

@@ -59,23 +59,23 @@ public class EpServer : NetworkServer<EpConnection>, IResource
get => membership;
set
{
if (membership != null)
membership.Authorization -= Membership_Authorization;
//if (membership != null)
// membership.Authorization -= Membership_Authorization;
membership = value;
if (membership != null)
membership.Authorization += Membership_Authorization;
//if (membership != null)
// membership.Authorization += Membership_Authorization;
}
}
private void Membership_Authorization(AuthorizationIndication indication)
{
lock (Connections.SyncRoot)
foreach (var connection in Connections)
if (connection.Session == indication.Session)
connection.ProcessAuthorization(indication.Results);
}
//private void Membership_Authorization(AuthorizationIndication indication)
//{
// lock (Connections.SyncRoot)
// foreach (var connection in Connections)
// if (connection.Session == indication.Session)
// connection.ProcessAuthorization(indication.Results);
//}
[Attribute]
public EntryPoint EntryPoint