Nov 13Custom HttpClient Tool For Specific RequirementsHi, Today, we will talk about why and what kind of HttpClient tool we need, based on some of the requirements we need in our code development processes. I am working in a cyber security company as a software architect. In this case, we use third-party API for calling clients…Webclient9 min readWebclient9 min read
Published inGeek Culture·Sep 1Race Condition Issues in Multithreaded ApplicationsRace conditions occur when two computer program processes, or threads, attempt to access the same resource at the same time and cause problems in the system. Race conditions are considered a common issue for multithreaded applications. The situation where processes using shared memory do their own work at the wrong…Threads9 min readThreads9 min read
Published inGeek Culture·Jun 27Generic Dependency Injection on .Net 7.0Hi, Today we will talk about, using Generic Dependency Injection while implementing Strategy Design Pattern on .Net 7.0. Firstly why do we need Strategy Pattern? Because in this scenario, we have to use different Analyze Tools. But all services are working for the same purpose and have the same methods…Dependency Injection8 min readDependency Injection8 min read
Published inGeek Culture·Mar 11Translate Microservice With ChatGPT .Net 7.0Hi, Today we will talk about, how to automize our daily routine with ChatGPT. Every day we create Turkish Email Template for the phishing simulators. We will translate this text template to English, German, and French by using ChatGPT automatically. 1-)OpenAI Account: Firstly you have to get an account from OpenAI Api…ChatGPT11 min readChatGPT11 min read
Published inGeek Culture·Jan 7How To Parse an Email And Analyze With C#Hi, Today we will try to parse an email to “From”, “To”, “Header”, “Body”, “Cc”, “Bcc”, “URLs”, and “Attachments”. Then we will analyze for malicious links and files(attachments) of the email by using some service. Later, we will create our custom blacklist for Url, Body, From, Bcc and Cc. Finally…Email6 min readEmail6 min read
Published inGeek Culture·Nov 27, 2022Converting Dictionary to Generic List<T> With Custom AttributeIf you have some string key and object values in the dictionary and want to convert to the “List of <T>” model and need some specific operations for some properties, this article is for you. In this article, we will take two different approaches. One of them is Dictionary Extension…Extension10 min readExtension10 min read
Published inGeek Culture·Nov 10, 2022How To Calculate String Formulas At Runtime On .NetHi, Today we will talk about how to calculate string formulas on runtime with C#. In one project, we had to run thousands of math formulas to calculate some sizes of products. These formulas could be changed later and we could add new ones. Therefore, writing a static formula inside…Formula5 min readFormula5 min read
Published inGeek Culture·Sep 30, 2022Special Solutions for Some Weaknesses of Entity FrameworkToday I would like to talk about my difficulties while querying Raw SQL on Entity Framework. Firstly with .Net 6.0, you can do everything with Linq Query. But what if you need Raw SQL? For Example, if you need SAP Integration, you use probably Hana Library. And Hana is not…Entity Framework Core9 min readEntity Framework Core9 min read
Published inGeek Culture·Aug 17, 2022Global Error Handling In .Net 6.0 With ElasticSearchHi, today we will talk about catching an error Globally in two ways on .Net Core 6.0. Later we will log this error into Elasticsearch and return Custom Error Model to the client. You can get very kind of errors from all over the solution. So sometimes you may want…Net66 min readNet66 min read
Published inGeek Culture·Jul 30, 2022Hidden C# Gem CodesHi, today we will talk about interesting and useful C# codes which are not known so much. 1. First Example is about using “out parameter” in Class Constructor: So when we send any out parameter to Class Constructor, we don’t need to return anything. …Csharp6 min readCsharp6 min read