Bu sitede kullandığım kodları ve yöntemleri görebilirsiniz.
Ajax uploader asp.net projeleri için
Bağlantıyı al
Facebook
X
Pinterest
E-posta
Diğer Uygulamalar
-
Eğer asp.net projelerinizde cutewebui. uploader uygulaması kullanıyorsanız buradan dökümanlarını okuyabilirsiniz. http://www.ajaxuploader.com/document/
Docker kaynaklar https://hub.docker.com/r/million12/haproxy/ cd /etc/haproxy/haproxy.config dosyası http://askubuntu.com/questions/505506/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode Haproxy kaynaklar https://www.howtoforge.com/tutorial/how-to-setup-haproxy-as-load-balancer-for-nginx-on-centos-7/ http://samos-it.com/posts/docker-multi-website-single-ip-host-haproxy.html This post will describe how to expose multiple docker containers running websites on port 80 using HAproxy as a reverse proxy. This makes it possible to run multiple websites on different domains on a single public ip of the host. The basic setup is to create 1 container for haproxy which is exposed to the host on port 80. This HAproxy container will forward the incoming HTTP request to the correct container based on the domain name. Picture drawn with draw.io . First launch the containers which run different websites. In our example we will use a hello-world ...
1. Eski Yöntem (Hafızayı Yoran Yol) string gelenVeri = "2026-03-29|ERROR|Sunucu_Coktu_Imdat!"; // Substring her seferinde RAM'de YENİ BİR STRING oluşturur. // 1 milyon istek gelirse, 1 milyon tane "ERROR" kelimesi RAM'i doldurur. string durum = gelenVeri.Substring(11, 5); if (durum == "ERROR") { Console.WriteLine("Alarm çalıyor!"); } 2. Yeni Yöntem: ReadOnlySpan (Işık Hızında Yol) Span ile hiçbir şeyi kopyalamıyoruz. Sadece ana metnin üzerine bir "şeffaf cetvel" koyuyoruz. string gelenVeri = "2026-03-29|ERROR|Sunucu_Coktu_Imdat!"; // AsSpan() dediğimiz an, veriyi kopyalamıyoruz. // Sadece "11. harften başla, 5 harf ilerle" diyoruz. ReadOnlySpan durumPenceresi = gelenVeri.AsSpan(11, 5); // "ERROR" ile karşılaştırırken bile yeni bir kopya oluşmaz. if (durumPenceresi.SequenceEqual("ERROR")) { Console.WriteLine("Alarm çalıyor (ve RAM tertemiz!)"); } C# 14...
Bugünün konusu unit of work implementasyonu eğer entity framework core ile çalışıyorsanız bunu incelemelisiniz. - 1 Web api dotnetcore entity framework ile bağlamak Link - 2 Generic Repository Pattern kullanmak Link - 3 Unit of work desenini oluşturmak Link Github kütüphane link Her bir uygulama katmanı için ayrı branch'e bakın. - Unit of work bir başka uygulama şekli Link - Mevcut dbniz için entityframework core ile mevcut scaffold modelleri çıkarmak Link - Dotnet tool ef update etmek için Link Entity framework core kullanmadan önce bu videonun içeriğini izleyin
Yorumlar
Yorum Gönder