예제 #1
0
        /// <summary>
        /// Send telemetry to report an instantaneous transaction, including any state properties which have been set.
        /// </summary>
        /// <param name="position">Overload the position of this event for Scene Explorer</param>
        /// <param name="result">CognitiveVR.Constants.TXN_SUCCESS, CognitiveVR.Constants.TXN_ERROR, or any application defined string describing the result</param>
        public void beginAndEnd(Vector3 position, string result = Constants.TXN_SUCCESS)
        {
            float[] pos = new float[3] {
                0, 0, 0
            };

            pos[0] = position.x;
            pos[1] = position.y;
            pos[2] = position.z;

            InstrumentationSubsystem.endTransaction(_category, result, _transactionId, _state, pos);

            _state = new Dictionary <string, object>();
        }
예제 #2
0
        /// <summary>
        /// Send telemetry to report an instantaneous transaction, including any state properties which have been set.
        /// </summary>
        /// <param name="result">CognitiveVR.Constants.TXN_SUCCESS, CognitiveVR.Constants.TXN_ERROR, or any application defined string describing the result</param>
        public void beginAndEnd(string result = Constants.TXN_SUCCESS)
        {
            InstrumentationSubsystem.endTransaction(_category, result, _transactionId, _state);

            _state = new Dictionary <string, object>();
        }