Tümü Yeni

user:thomas kullanıcı tarafından oluşturulan gistler

title:mygist belirtilen isme sahip gistler

filename:myfile.txt belirtilen isimde dosyaları olan gistler

extension:yml belirtilen uzantıya sahip dosyalara sahip gistler

language:go belirtilen dilde dosyaları olan gistler

topic:homelab Verilen konuyla ilgili gist'ler

Kaydol

Giriş


Tümü Yeni Kaydol Giriş

Tüm gistler

Yakın zamanda oluşturuldu
En eski oluşturuldu
Yakın zamanda güncellendi
En eski güncellendi
twerner's Avatar

twerner / ASP.NET Core Rate Limiting

0 beğeniler
0 çatallar
2 dosyalar
Son aktivite 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 beğeniler
0 çatallar
6 dosyalar
Son aktivite 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;
Daha yeni Daha eski

Opengist tarafından desteklenmektedir ⋅ Load: 38ms⋅

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