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" />
<PackageReference Include="MethodWatch.Web" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=MethodWatch.Web&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Clone the repository
- Open the solution in your IDE
- 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
- A NuGet account (create one at https://www.nuget.org)
- Your NuGet API key (get it from your NuGet account settings)
Steps to Publish
- Update the version in
MethodWatch/MethodWatch.csproj
:
<Version>1.1.0</Version>
- Build the project in Release mode:
dotnet build --configuration Release
- Pack the project:
dotnet pack MethodWatch/MethodWatch.csproj --configuration Release
- 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
- Create a new branch
- Implement your changes
- Update tests if necessary
- Submit a pull request
Testing
Run the tests:
dotnet test
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions 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.
-
net9.0
- MethodWatch (>= 1.1.0)
- Microsoft.Extensions.Logging.Console (>= 8.0.0)
- Swashbuckle.AspNetCore (>= 8.1.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.