/// <summary>
        /// Retrieves the Thread Context of the thread that the event occured on.
        /// </summary>
        public INativeContext GetThreadContext(int threadId)
        {
            INativeContext context = NativeContextAllocator.Allocate();

            GetThreadContext(threadId, context);
            return(context);
        }
        /// <summary>
        /// Retrieves the Thread Context of the thread that the event occured on.
        /// </summary>
        public INativeContext GetCurrentContext()
        {
            INativeContext context = NativeContextAllocator.Allocate();

            GetCurrentContext(context);
            return(context);
        }