Beispiel #1
0
 static CrashReportLogLevel CheckCrashReportLog(string directory_str, bool clear)
 {
     using (var directory_chars = RuntimeMarshal.MarshalString(directory_str))
     {
         return((CrashReportLogLevel)CheckCrashReportLog_internal(directory_chars.Value, clear));
     }
 }
Beispiel #2
0
 static void EnableCrashReportLog(string directory_str)
 {
     using (var directory_chars = RuntimeMarshal.MarshalString(directory_str))
     {
         EnableCrashReportLog_internal(directory_chars.Value);
     }
 }
Beispiel #3
0
 static void AnnotateMicrosoftTelemetry(string key, string val)
 {
     using (var key_chars = RuntimeMarshal.MarshalString(key))
         using (var val_chars = RuntimeMarshal.MarshalString(val))
         {
             AnnotateMicrosoftTelemetry_internal(key_chars.Value, val_chars.Value);
         }
 }
Beispiel #4
0
 static void RegisterReportingForNativeLib(string modulePathSuffix_str, string moduleName_str)
 {
     using (var modulePathSuffix_chars = RuntimeMarshal.MarshalString(modulePathSuffix_str))
         using (var moduleName_chars = RuntimeMarshal.MarshalString(moduleName_str))
         {
             RegisterReportingForNativeLib_internal(modulePathSuffix_chars.Value, moduleName_chars.Value);
         }
 }
Beispiel #5
0
        WriteStateToFile(Exception exc)
        {
            ulong  portable_hash;
            ulong  unportable_hash;
            string payload_str = ExceptionToState_internal(exc, out portable_hash, out unportable_hash);

            using (var payload_chars = RuntimeMarshal.MarshalString(payload_str))
            {
                WriteStateToFile_internal(payload_chars.Value, portable_hash, unportable_hash);
            }
        }
Beispiel #6
0
 static void SendMicrosoftTelemetry(string payload_str, ulong portable_hash, ulong unportable_hash)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
     {
         using (var payload_chars = RuntimeMarshal.MarshalString(payload_str))
         {
             SendMicrosoftTelemetry_internal(payload_chars.Value, portable_hash, unportable_hash);
         }
     }
     else
     {
         throw new PlatformNotSupportedException("Merp support is currently only supported on OSX.");
     }
 }
Beispiel #7
0
 static void EnableMicrosoftTelemetry(string appBundleID_str, string appSignature_str, string appVersion_str, string merpGUIPath_str)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
     {
         using (var appBundleID_chars = RuntimeMarshal.MarshalString(appBundleID_str))
             using (var appSignature_chars = RuntimeMarshal.MarshalString(appSignature_str))
                 using (var appVersion_chars = RuntimeMarshal.MarshalString(appVersion_str))
                     using (var merpGUIPath_chars = RuntimeMarshal.MarshalString(merpGUIPath_str))
                     {
                         EnableMicrosoftTelemetry_internal(appBundleID_chars.Value, appSignature_chars.Value, appVersion_chars.Value, merpGUIPath_chars.Value);
                     }
     }
     else
     {
         throw new PlatformNotSupportedException("Merp support is currently only supported on OSX.");
     }
 }