Back to product page

ConnectedEvent event


Fires when user connects to wodWebServer.NET.

Syntax

  • C#
  • VB.NET
delegate void ConnectedDelegate(object Sender, WebConnectedArgs Args);
The ConnectedEvent(Args.Action,Args.User) syntax has these parts:
Args.ActionWebActions enumeration value. Determines if user is allowed to connect or not.
Args.UserWebUser object. Reference to the user who is connected to the server.

Delegate Sub ConnectedDelegate(ByVal Sender as Object, ByVal Args As WebConnectedArgs)
The ConnectedEvent(Args.Action,Args.User) syntax has these parts:
Args.ActionWebActions enumeration value. Determines if user is allowed to connect or not.
Args.UserWebUser object. Reference to the user who is connected to the server.

Remarks

Connected event is fired immediately when connection is established between new client and the wodWebServer.NET, but before he sent any requests to the server. At this point you can decide to reject user's connection. You can do so if, for example, his RemoteIP does not match list of addresses you plan to allow, or you are not ready to serve clients, etc..

Platforms

Windows