-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aa6b10
commit 47e392b
Showing
12 changed files
with
193 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using NetPackageAnalyzerObjects; | ||
using RSCG_WhatIAmDoing; | ||
using RSCG_WhatIAmDoing_Common; | ||
using System; | ||
namespace WhatIAmDoingData; | ||
|
||
[InterceptStatic("System.Console.*")] // regex | ||
internal class InterceptorMethodStatic : InterceptorMethodStaticBase, IInterceptorMethodStatic | ||
{ | ||
} | ||
|
||
[InterceptInstanceClass(typeof(GenerateFiles), ".*")] //regex | ||
[InterceptInstanceClass(typeof(ProcessOutput), ".*")] //regex | ||
public class InterceptorMethodInstanceClass : InterceptorMethodInstanceClassBase, IInterceptorMethodInstanceClass | ||
{ | ||
|
||
} | ||
|
||
public class DisplayData | ||
{ | ||
public static void DisplayJustErrors() | ||
{ | ||
var data = CachingData.MethodsError().ToArray(); | ||
Console.WriteLine("methods:" + data.Length); | ||
foreach (var item in data) | ||
{ | ||
//if ((item.State & AccumulatedStateMethod.RaiseException) != AccumulatedStateMethod.RaiseException) | ||
//{ | ||
// Console.WriteLine("not interested in " + item.typeAndMethodData.MethodName); | ||
// continue; | ||
//} | ||
Console.WriteLine($"{item.typeAndMethodData.MethodName} {item.State}"); | ||
Console.WriteLine($"Method {item.typeAndMethodData.MethodName} from class {item.typeAndMethodData.TypeOfClass} Time: {item.StartedAtDate} state {item.State} "); | ||
Console.WriteLine($" =>Arguments: {item.ArgumentsAsString()}"); | ||
|
||
|
||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/NetPackageAnalyzer/WhatIAmDoingData/WhatIAmDoingData.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="RSCG_WhatIAmDoing" Version="8.2024.10316.2235" /> | ||
<PackageReference Include="RSCG_WhatIAmDoing_Common" Version="8.2024.10316.2235" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\NetPackageAnalyzerObjects\NetPackageAnalyzerObjects.csproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
|
||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath> | ||
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);RSCG_InterceptorTemplate</InterceptorsPreviewNamespaces> | ||
</PropertyGroup> | ||
</Project> |