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.
paket add RecordVisitors --version 2021.5.31.1755
#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.
// Install RecordVisitors as a Cake Addin
#addin nuget:?package=RecordVisitors&version=2021.5.31.1755

// Install RecordVisitors as a Cake Tool
#tool nuget:?package=RecordVisitors&version=2021.5.31.1755

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 Docs

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. 
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 382 5/31/2021
2021.5.30.1958 391 5/30/2021
2021.5.30.1340 382 5/30/2021
2021.5.29.1730 349 5/29/2021
1.0.0 357 5/29/2021