-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about usage Server #127
Comments
Hello, Glad you like my library. IP bindingI don't expose this by default but you can promote LibUA/NET Core/LibUA/Server.cs Line 60 in c8e642d
Then you can pass in an ip to bind to here: LibUA/NET Core/TestServer/Program.cs Line 590 in c8e642d
For user-level permissions,Create a session object (any type of your design) and return a new instance here: https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/TestServer/Program.cs#L105C41-L105C61 LibUA/NET Core/TestServer/Program.cs Line 138 in c8e642d
E.g. session.state == Logged in, session.username == username now Implement this in your Application : https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Application.cs#L633Now you can check if session[Logged in, username] has permission to access any particular NodeId .
StorageFor memory I use a |
Hi, IP bindinghttps://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Server.cs#L35C11-L35C17it would be nice to pass endpoint to constructor For user-level permissions,https://github.com/nauful/LibUA/blob/c8e642d10b1f39543bc1487c8e0fa496ef743b17/NET%20Core/LibUA/Application.cs#L633 best regards |
Done both, please try now. |
Closed, finished work. |
Hi,
First I wanted to thank you for your great work for this great library.
best regards
The text was updated successfully, but these errors were encountered: