コード例 #1
0
        /// <summary>
        /// Sets or clears a specific key-value pair from the crash metadata.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_crash_util_capi.h">cef/include/capi/cef_crash_util_capi.h</see>.
        /// </remarks>
        public static void SetCrashKeyValue(string key, string value)
        {
            var call = new CfxRuntimeSetCrashKeyValueRemoteCall();

            call.key   = key;
            call.value = value;
            call.RequestExecution();
        }
コード例 #2
0
ファイル: CfrRuntime.cs プロジェクト: tianqiq/ChromiumFX
        /// <summary>
        /// Sets or clears a specific key-value pair from the crash metadata.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_crash_util_capi.h">cef/include/capi/cef_crash_util_capi.h</see>.
        /// </remarks>
        public static void SetCrashKeyValue(string key, string value)
        {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call       = new CfxRuntimeSetCrashKeyValueRemoteCall();

            call.key   = key;
            call.value = value;
            call.RequestExecution(connection);
        }