Minden Új

user:thomas létrehozva e felhasználó által

title:mygist gistek egyező címmel

filename:myfile.txt gistek melyek tartalmaznak fájlt egyező névvel

extension:yml gistek melyek tartalmaznak fájlt egyező kiterjesztéssel

language:go gistek melyek tartalmaznak fájlt egyező nyelvvel

topic:homelab gists with given topic

Regisztráció

Bejelentkezés


Minden Új Regisztráció Bejelentkezés

Összes gist

Újabbtól létrehozva
Utolsótól létrehozva
Újabbtól módosítva
Utolsótól módosítva
twerner's Avatar

twerner / ASP.NET Core Rate Limiting

0 Kedvelések
0 forkok
2 fájlok
Utoljára aktív 1 year ago
1 // Existing services ...
2
3 builder.Services.AddRateLimiter(options =>
4 {
5 options.GlobalLimiter = PartitionedRateLimiter.Create<HttpContext, string>(httpContext =>
6 RateLimitPartition.GetFixedWindowLimiter(
7 partitionKey: httpContext.User.Identity?.Name ?? httpContext.Request.Headers.Host.ToString(),
8 factory: partition => new FixedWindowRateLimiterOptions
9 {
10 AutoReplenishment = true,
twerner's Avatar

twerner / GenericRepository

0 Kedvelések
0 forkok
6 fájlok
Utoljára aktív 1 year ago
1 public class GenericRepository<T, TKey> : IGenericRepository<T, TKey>
2 where T : class
3 where TKey : IEquatable<TKey>
4 {
5 protected readonly ApplicationDbContext Context;
6 protected readonly IMapper Mapper;
7
8 protected GenericRepository(ApplicationDbContext context, IMapper mapper)
9 {
10 Context = context;
Újabb Régebbi

Ez az oldal Opengist alapú ⋅ Load: 35ms⋅

Magyar
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文