検証台用に同じソースを取り込む二つのプラグインを追加

このコミットが含まれているのは:
routersys committed 2026-09-06 11:19:00 +09:00
1 親 784175398e
コミット 5d9b906cd5
3ファイル変更
+99

検索条件に一致するファイルはありません

+51
ファイルの表示
@@ -0,0 +1,51 @@
using System.Globalization;
using Telemetry;
namespace Telemetry.Harness.Plugin;
public static class Probe
{
public static string AssemblyName => typeof(Probe).Assembly.GetName().Name ?? "unknown";
public static string PluginName => PluginIdentity.Name;
public static string SessionId => TelemetrySession.Id;
public static string ReserveBudget(string fingerprint) =>
TelemetryBudget.TryReserve(fingerprint).ToString();
public static string PrepareReport()
{
try
{
throw new InvalidOperationException("検証台からの報告です。");
}
catch (Exception exception)
{
return TelemetryReporter.Prepare(exception, TelemetrySpool.Default).Decision.ToString();
}
}
public static string BuildEnvelope()
{
try
{
throw new InvalidOperationException("検証台からの報告です。");
}
catch (Exception exception)
{
var captured = ExceptionCapture.Capture(exception, PluginIdentity.Assembly);
var envelope = SentryEnvelope.Build(
Guid.NewGuid().ToString("N"),
captured,
"error",
DateTimeOffset.UtcNow);
return System.Text.Encoding.UTF8.GetString(envelope);
}
}
public static string Describe() => string.Create(
CultureInfo.InvariantCulture,
$"{AssemblyName} plugin={PluginName} session={SessionId}");
}
+24
ファイルの表示
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Telemetry.props" />
<PropertyGroup>
<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Telemetry.Harness.Plugin\*.cs" LinkBase="Probe" />
</ItemGroup>
<ItemGroup>
<Reference Include="YukkuriMovieMaker.Plugin">
<HintPath>$(YMM4DirPath)YukkuriMovieMaker.Plugin.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
</Project>
+24
ファイルの表示
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Telemetry.props" />
<PropertyGroup>
<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>
<UseWPF>true</UseWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Telemetry.Harness.Plugin\*.cs" LinkBase="Probe" />
</ItemGroup>
<ItemGroup>
<Reference Include="YukkuriMovieMaker.Plugin">
<HintPath>$(YMM4DirPath)YukkuriMovieMaker.Plugin.dll</HintPath>
<Private>false</Private>
</Reference>
</ItemGroup>
</Project>