MethodWatch.Web 1.1.0

Additional Details

Deleted

dotnet add package MethodWatch.Web --version 1.1.0
                    
NuGet\Install-Package MethodWatch.Web -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MethodWatch.Web" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MethodWatch.Web" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="MethodWatch.Web" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MethodWatch.Web --version 1.1.0
                    
#r "nuget: MethodWatch.Web, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MethodWatch.Web@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MethodWatch.Web&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=MethodWatch.Web&version=1.1.0
                    
Install as a Cake Tool

MethodWatch Web

This is the web project for MethodWatch, demonstrating the usage of the MethodWatch library in an ASP.NET Core application.

Features

  • 📊 Real-time method execution monitoring
  • 🌐 Web UI for performance visualization
  • 📈 Statistics API endpoint
  • 🔍 Example controller implementations

Getting Started

  1. Clone the repository
  2. Open the solution in your IDE
  3. Run the project:
dotnet run

Web UI

Access the MethodWatch web interface at:

https://localhost:7000/methodwatch

Statistics API

Access the statistics API at:

https://localhost:7000/stats

Publishing to NuGet

Prerequisites

  1. A NuGet account (create one at https://www.nuget.org)
  2. Your NuGet API key (get it from your NuGet account settings)

Steps to Publish

  1. Update the version in MethodWatch/MethodWatch.csproj:
<Version>1.1.0</Version>
  1. Build the project in Release mode:
dotnet build --configuration Release
  1. Pack the project:
dotnet pack MethodWatch/MethodWatch.csproj --configuration Release
  1. Push to NuGet:
dotnet nuget push MethodWatch/bin/Release/MethodWatch.1.1.0.nupkg --api-key YOUR_API_KEY --source https://api.nuget.org/v3/index.json

Versioning Guidelines

  • Major version (1.x.x): Breaking changes
  • Minor version (x.1.x): New features, no breaking changes
  • Patch version (x.x.1): Bug fixes and minor improvements

Project Structure

MethodWatch.Web/
├── Controllers/
│   ├── MethodWatchController.cs    # Main controller for MethodWatch UI
│   └── StatisticsController.cs     # Statistics API endpoint
├── wwwroot/
│   └── methodwatch.html           # Web UI
└── Program.cs                     # Application configuration

Configuration

The web project demonstrates how to configure MethodWatch in an ASP.NET Core application:

builder.Services.AddMethodWatch(options =>
{
    options.EnableStatistics = true;
    options.EnableWebUI = true;
    options.StatisticsPort = 7000;  // Using HTTPS port
    options.WebUIPort = 7000;       // Using HTTPS port
});

Development

Adding New Features

  1. Create a new branch
  2. Implement your changes
  3. Update tests if necessary
  4. Submit a pull request

Testing

Run the tests:

dotnet test

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 334 6/8/2025 1.1.0 is deprecated.
1.0.0 335 6/8/2025 1.0.0 is deprecated.