Skip to content
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

Da login fix #83

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Da login fix #83

wants to merge 8 commits into from

Conversation

Syphontwo
Copy link

The changes in this branch enable users to put in a username and password as non-secure strings when connecting to DA servers. I originally forked in order to get the functionality added by the Opc.Da.Url DaClient constructor which is not present in the NuGet package, but ended up making this small change and thought it would be good to post.

DaClient has a new constructor overload which includes the option of passing username and password.  These are used to build System.Net.NetworkCredential which in turn makes the Opc.ConnectData for the Opc.Da.server
Pulled out the main bits of the connect method into a private function.  This allows both the interface Connect and the obejct specific conenct to use the same logic for all except the one line which changes.
@Syphontwo
Copy link
Author

Syphontwo commented Jun 5, 2018

Not sure why appveyor says the build failed... I'm using this library as written right now.

Looking to the appveyor build, it looks like the failed items are nothing that I have changed. This leads me to believe the current master fails as well.

@jmbeach
Copy link
Contributor

jmbeach commented Jul 12, 2018

Hi Syphontwo, Thanks for the contribution! I understand why you would think that. However, the error is actually caused by a tool we use that enforces certain style guidelines.

Please review our getting started guide to see how to properly build locally to match the way we compile on appveyor.

@Syphontwo
Copy link
Author

Thanks for the info, I'm working on getting this all setup now. Sorry I missed that part of the documentation!

Not sure exactly when I'll be able to get it rolled over, but hopefully it will be today or tomorrow.

setting up the cs-boilerplate correctly this time.
hit commit before seelcting this file, my bad
@Syphontwo
Copy link
Author

There we go! Passing no problem.

The key issue was no space between the end of the CheckResult(IResult result, string tag) function and the /// <summary> of the Connect(string userName, string password) function. Other than that, all the other work was simply getting grunt to run. It was good to learn something new!

jmbeach and others added 2 commits July 20, 2018 08:55
Removed the gitignore inside the h-opc folder because there is already one in the directory above it.

Removed App.config from the test project because it is no longer part of the project and was causing the build to fail.
remove extra gitignore and fix test project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants