How can I create CreateSingleServerUserContext with DefaultNetworkCredentials? There is not option to use CredentialCache.
You cannot.
VideoOS.Platform.SDK.MultiEnvironment.CreateSingleServerUserContext (string username, string password, bool usingAD, Uri uri, string serverType =
ServerId.DefaultServerType)
MultiEnvironment is designed for server scenario where you need multiple different users to be logged in at the same time, if you do not need this it is my recommendation to reduce the complexity by avoiding the use of MultiEnvironment. I do not imagine a use case scenario where you need both the current Windows user and another user logged in simultaneously, so my reply would then be to avoid MultiEnvironment.
I am bit curious about the use case scenario as I have probably not understood it. Can you please explain what you would like to achieve?
I work on application displaying sets of cameras with actions (like start/stop recording etc). User should specify credentials to more servers to connect and see cameras per connection. I know there is support in MIPSKD for more servers via MultiEnvironment and suppot for more users connected to one server via MultiUserEnvironment.
Is there an option to connect to more servers together with option to connect more users to one of these servers?
E.g.
I want to connect:
- server A with user 1
- server A with user 2 (this should be current windows user)
- server B with user 3
- server C with user 4
User 1 has different rights than user 2 and they see different cameras.