hello,
This is strange behavior SessionTest sample project in Unity.
//=====================================SESSION_SERVICE========================================
if (GUI.Button(new Rect(680, 200, 200, 30), "SetAttribute"))
{
sessionService = sp.BuildSessionService(); // Initializing Session Service.
sessionService.SetAttribute(cons.sessionId, cons.attributeName, cons.attributeValue, callBack);
}
//======================================SESSION_SERVICE=======================================
if (GUI.Button(new Rect(890, 200, 200, 30), "GetAttribute"))
{
sessionService = sp.BuildSessionService(); // Initializing Session Service.
sessionService.GetAttribute(cons.sessionId, cons.attributeName, callBack);
}
Once this code to work properly, the second
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2 [System.String, System.String] .Add (System.String key, System.String value) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)
(System.String sessionId, System.String attributeName, App42CallBack callBack) com.shephertz.app42.paas.sdk.csharp.session.SessionService.GetAttribute
SessionTest.OnGUI () (at Assets / App42SampleScripts / SessionTest.cs: 88)
This error appears in the console or in Unity.
Is it normal?
When you exit Unity and once again it works normal.