mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-30 23:51:34 +00:00 
			
		
		
		
	IAuth
This commit is contained in:
		| @@ -70,48 +70,6 @@ public class IIPoWS : HTTPFilter | ||||
|  | ||||
|         return new AsyncReply<bool>(false); | ||||
|  | ||||
|         /* | ||||
|         if (sender.Request.Filename.StartsWith("/iip/")) | ||||
|         { | ||||
|             // find the service | ||||
|             var path = sender.Request.Filename.Substring(5);// sender.Request.Query["path"]; | ||||
|  | ||||
|  | ||||
|             Warehouse.Get(path).Then((r) => | ||||
|             { | ||||
|                 if (r is DistributedServer) | ||||
|                 { | ||||
|                     var httpServer = sender.Parent; | ||||
|                     var iipServer = r as DistributedServer; | ||||
|                     var tcpSocket = sender.Unassign(); | ||||
|                     if (tcpSocket == null) | ||||
|                         return; | ||||
|  | ||||
|                     var wsSocket = new WSSocket(tcpSocket); | ||||
|                     httpServer.RemoveConnection(sender); | ||||
|  | ||||
|                     //httpServer.Connections.Remove(sender); | ||||
|                     var iipConnection = new DistributedConnection(); | ||||
| //                      iipConnection.OnReady += IipConnection_OnReady; | ||||
| //                        iipConnection.Server = iipServer; | ||||
| //                    iipConnection.Assign(wsSocket); | ||||
|  | ||||
|                     iipServer.AddConnection(iipConnection); | ||||
|                     iipConnection.Assign(wsSocket); | ||||
|                     wsSocket.Begin(); | ||||
|                 } | ||||
|             }); | ||||
|  | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         return false; | ||||
|         */ | ||||
|     } | ||||
|  | ||||
|     private void IipConnection_OnReady(DistributedConnection sender) | ||||
|     { | ||||
|         Warehouse.Put(sender.RemoteUsername, sender, null, sender.Server).Wait(); | ||||
|     } | ||||
|  | ||||
|     public override AsyncReply<bool> Trigger(ResourceTrigger trigger) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user