RecordVisitors 2021年5月31日.1755

dotnet add package RecordVisitors --version 2021年5月31日.1755
 
NuGet\Install-Package RecordVisitors -Version 2021年5月31日.1755
 
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="RecordVisitors" Version="2021年5月31日.1755" />
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecordVisitors" Version="2021年5月31日.1755" />
 
Directory.Packages.props
<PackageReference Include="RecordVisitors" />
 
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 RecordVisitors --version 2021年5月31日.1755
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RecordVisitors, 2021年5月31日.1755"
 
#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 RecordVisitors@2021年5月31日.1755
 
#: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=RecordVisitors&version=2021年5月31日.1755
 
Install as a Cake Addin
#tool nuget:?package=RecordVisitors&version=2021年5月31日.1755
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Record Latest visitors for .NET Core

<img src="https://github.com/ignatandrei/RecordVisitors/raw/main/docs/rv.png" width="50px" height="50px" style="height: 50px; width:50px;" /> GitHub license
BuildAndTest codecov Nuget

All Contributors

What it does

This project helps you to record what visitors have you on the site. It does not enforce authentication

You can see the latest 5 minutes visitors by browsing to /recordVisitors/AllVisitors5Min or /recordVisitors/AllVisitors/5

How to use it

Simple use

In Startup,

public void ConfigureServices(IServiceCollection services)
{
 //code omitted
 services.AddRecordVisitorsDefault();
 
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
 //code omitted 
 app.UseAuthentication();
 //put AFTER authentication
 app.UseRecordVisitors();
 //not necessary
 app.UseAuthorization();
 //code omitted
 app.UseEndpoints(endpoints =>
 {
 endpoints.MapControllers();
 endpoints.UseVisitors();
 });
}

Then browse to /recordVisitors/AllVisitors5Min or /recordVisitors/AllVisitors/5

You can see also the history for the URL that the user have browsed : goto /recordVisitors/UserHistory/{userId}/{dateFrom:datetime:regex(\d{{4}}-\d{{2}}-\d{{2}})}/{dateTo?}

( to find the user id , you can also goto /recordVisitors/GetUserId/{userName})

You can see also the classes documentation at https://ignatandrei.github.io/RecordVisitors/RecordVisitors/

Customizable uses

There are several interfaces that you can implement via DI

Name Description
IRecordVisitorFunctions how to indentify the user
IRequestRecorded request of the user
IUserRecorded the user recorded interface to store data
IUsersRepository the connection to the storage( database, csv , others)

The project comes with his implementation - however, you can add yours.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

<table> <tr> <td align="center"><a href="http://msprogrammer.serviciipeweb.ro/"><img src="https://avatars.githubusercontent.com/u/153982?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrei Ignat</b></sub></a><br /><a href="https://github.com/ignatandrei/RecordVisitors/commits?author=ignatandrei" title="Tests">⚠️</a> <a href="https://github.com/ignatandrei/RecordVisitors/commits?author=ignatandrei" title="Code">💻</a></td> </tr> </table>

This project follows the all-contributors specification. Contributions of any kind welcome!

Licence

The code in this project is licensed under MIT license.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible. 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. 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
2021年5月31日.1755 638 5/31/2021
2021年5月30日.1958 615 5/30/2021
2021年5月30日.1340 604 5/30/2021
2021年5月29日.1730 583 5/29/2021
1.0.0 564 5/29/2021