RSCG_WhatIAmDoing 8.2024.10321.810
See the version list below for details.
dotnet add package RSCG_WhatIAmDoing --version 8.2024.10321.810
NuGet\Install-Package RSCG_WhatIAmDoing -Version 8.2024.10321.810
<PackageReference Include="RSCG_WhatIAmDoing" Version="8.2024.10321.810" />
paket add RSCG_WhatIAmDoing --version 8.2024.10321.810
#r "nuget: RSCG_WhatIAmDoing, 8.2024.10321.810"
// Install RSCG_WhatIAmDoing as a Cake Addin #addin nuget:?package=RSCG_WhatIAmDoing&version=8.2024.10321.810 // Install RSCG_WhatIAmDoing as a Cake Tool #tool nuget:?package=RSCG_WhatIAmDoing&version=8.2024.10321.810
RSCG_WhatIAmDoing
Instrument C# software on CI to find what the software is doing.
Introduction
Decide what you want to monitor ... and then monitor it.
Example
Packages
Add the following into the csproj you want to be monitores
<ItemGroup>
<PackageReference Include="RSCG_WhatIAmDoing" Version="8.2024.10321.810" />
<PackageReference Include="RSCG_WhatIAmDoing_Common" Version="8.2024.10321.810" />
</ItemGroup>
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);RSCG_InterceptorTemplate</InterceptorsPreviewNamespaces>
</PropertyGroup>
Code
Intercept static methods
Assume that you want to monitor all calls to System.Console
//[ExposeClass(typeof(Encoding), nameof(Encoding.EncodingName))]
//[InterceptStatic("System.IO.File.*ts")]
//[InterceptStatic("System.IO.File.*")]
[InterceptStatic("System.Console.*")] // regex
//[InterceptStatic("WIAD_DemoConsole.Fib.*")]
internal class InterceptorMethodStatic : InterceptorMethodStaticBase, IInterceptorMethodStatic
{
}
Intercept instance methods
Assume that you want to monitor all calls to any method of any instance of Person
//[InterceptInstanceClass(typeof(Person),"ame")]
//[InterceptInstanceClass(typeof(Person), "parat")]
//[InterceptInstanceClass(typeof(Person), "ncodi")]
[InterceptInstanceClass(typeof(Person), ".*")] //regex
public class InterceptorMethodInstanceClass: InterceptorMethodInstanceClassBase, IInterceptorMethodInstanceClass
{
public InterceptorMethodInstanceClass()
{
}
}
See the results
var data= CachingData.Methods().ToArray();
foreach (var item in data)
{
WriteLine($"Method {item.typeAndMethodData.MethodName} from class {item.typeAndMethodData.TypeOfClass} Time: {item.StartedAtDate} state {item.State} ");
WriteLine($" =>Arguments: {item.ArgumentsAsString()}");
if ((item.State & AccumulatedStateMethod.HasResult) == AccumulatedStateMethod.HasResult)
{
WriteLine($" =>Result: {item.Result}");
}
}
More details
If you want to implement YOUR interception , implement the following interfaces
IInterceptorMethodInstanceClass
IInterceptorMethodStatic
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.7.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RSCG_WhatIAmDoing:
Package | Downloads |
---|---|
RSCG_WhatIAmDoing_Common
What I Am Doing - see what your software is doing. Add also RSCG_WhatIAmDoing_Common |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.2024.10405.851 | 482 | 4/5/2024 |
8.2024.10404.2057 | 116 | 4/4/2024 |
8.2024.10402.2257 | 146 | 4/2/2024 |
8.2024.10402.810 | 126 | 4/2/2024 |
8.2024.10401.810 | 147 | 4/1/2024 |
8.2024.10321.810 | 142 | 3/31/2024 |
8.2024.10316.2235 | 158 | 3/16/2024 |
8.2024.10316.2035 | 154 | 3/16/2024 |
8.2024.10201.735 | 150 | 2/1/2024 |
8.2024.10131.11824 | 144 | 1/31/2024 |