How to log in with out login dialog. (MIPSDK Component)

Dear.

When logging in as MIPSDK is updated, the login method using CredentialCache without a login dialog is a code that is no longer used.

When we log in without a login dialog, we log in with the code below.

     Uri uri = new UriBuilder(sUrl).Uri;

     CredentialCache cc = VideoOS.Platform.Login.Util.BuildCredentialCache(uri, sId, sPass, "Basic");

     VideoOS.Platform.SDK.Environment.AddServer(uri, cc);

     VideoOS.Platform.SDK.Environment.Login(uri);

Is there any way to log in without a login dialog like this? Please let me know how to log in with out login dialog.

ConfigAddCameras sample can show you the login code, please explore and test (around) line 144 in Program.cs in the sample.

There is a LoginUsingCurrentCredentials method and it might be helpful.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/configaddcameras/readme.html&tree=tree_2.html

thank you sir!

It’s helpful for me.