検証台用に同じソースを取り込む二つのプラグインを追加
このコミットが含まれているのは:
3ファイル変更
+99
検索条件に一致するファイルはありません
@@ -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}");
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
新しいイシューから参照
ユーザーをブロックする