Open S-Gurpreet opened 7 years ago
I am having this issue as well. There are a couple of bugs for ADHOC sessions too, that ports leak #84 . Seems the binding for PERSISTENCE is not correctly modified.
A PR is available that fixes this assumingly https://github.com/Microsoft/HoloToolkit/pull/83
Hi, I'm using HoloToolkit library in C# console (and web) applications, only to create a session (to which other HoloLens based clients will connect later). But it is only creating ADHOC session despite passing SessionType as PERSISTENT.
Following is the Main() function code:
In above Main() function code, the statement
xToolsApp.CreateSession("TestSession", SessionType.PERSISTENT)
calls the following function:Then, finally, in above function, the statement
this.SessionManager.CreateSession(nameXString, sessionType)
calls following method which was auto generated by HoloToolkit.Sharing library and I think this code calls native code (inside SharingClient.Dll file which is placed in bin folder):So, you see that I'm passing Session type as PERSISTENT but I still always get only ADHOC session created, which closes itself as soon as my client leaves that session (as no other user is present in that session). What should I do to get PERSISTENT session created from my client code?
Finally, how can I close it whenever required from (any) client, by getting reference to it?