RecordVisitors 2021.5.31.1755
dotnet add package RecordVisitors --version 2021.5.31.1755
NuGet\Install-Package RecordVisitors -Version 2021.5.31.1755
<PackageReference Include="RecordVisitors" Version="2021.5.31.1755" />
paket add RecordVisitors --version 2021.5.31.1755
#r "nuget: RecordVisitors, 2021.5.31.1755"
// 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;" />
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!
Links
- Project homepage: https://github.com/ignatandrei/RecordVisitors
- Code Coverage: https://codecov.io/gh/ignatandrei/RecordVisitors
- Results of tests in BDD format : https://record-visitors.readthedocs.io/en/latest/BDD/LightBDDReport/
- Repository: https://github.com/ignatandrei/RecordVisitors/
- Issue tracker: https://github.com/ignatandrei/RecordVisitors/issues
- Documentation: Project homepage: https://record-visitors.readthedocs.io/en/latest/
- Blog: http://msprogrammer.serviciipeweb.ro/category/recordvisitors/
Licence
The code in this project is licensed under MIT license.
Product | Versions 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. |
-
net5.0
- Microsoft.EntityFrameworkCore.InMemory (>= 5.0.6)
- ThisAssembly (>= 1.0.8)
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 | 417 | 5/31/2021 |
2021.5.30.1958 | 421 | 5/30/2021 |
2021.5.30.1340 | 410 | 5/30/2021 |
2021.5.29.1730 | 383 | 5/29/2021 |
1.0.0 | 384 | 5/29/2021 |