Category Archives: .NET

Using MS SQL’s Row Level Security Policy in Entity Framework

By | February 22, 2018

My last blog post was about a feature in SQL Server called Row Level Security Policy. It’s quite simple and known feature for people who’re working directly with databases. But most .NET developers are using ORM of some kind to work with DB, and some of them tend to be blind to stuff that is not… Read More »

Structured logs with Serilog and Application Insights

By | December 10, 2017

I’m working with Azure for quite a while now. Almost every single one of my projects lands there eventually and even if I don’t deploy it there, I’m using one of it’s databases. Recently I’ve started using Visual Studio Team Services for storing code and managing my every pet or demo project that I want to… Read More »

Akka.NET #7: Creating and accessing Actor System with Dependency Injection Container

By | October 1, 2017

A while ago I wrote about creating Actor System and top-level actors. Sadly it was stored in a static field. And keyword static is … let’s say it’s not one of my favourites. Today I’ll show you how I’m doing the exact same thing but in Dependency Injection container.

Akka.NET #5: Persisting actors state – events

By | May 11, 2017

As I’ve mentioned in previous posts about Akka.NET, everything that actor knows is stored in memory. While we can skip any database or IO related bottlenecks because things in memory are generally speaking very fast, we must remember that memory is not a place where you can store your data for an extended period of time… Read More »

Akka.NET #3.5: Actor paths requirements and how to meet them

By | May 7, 2017

In one of my posts about Akka.NET I’ve covered actor selections and paths. Sadly I’ve skipped one rather important part regarding allowed characters for actor paths and what to do if our name cannot be used for creating an actor. And recently I’ve received a question about why I’m creating actors using encoded string. This… Read More »

Akka.NET #3: Actor selections, paths and references – where should you send your messages

By | April 2, 2017

One of the concepts of actor model that could be hard to grasp at the begining is fact that we will not operate on direct reference to actor instance. This can be a bit confusing before you’ll get used to it but by not using any direct references you’re sure to achieve very good level… Read More »

One night with Nancy

By | March 8, 2017

Until recently I was into ASP.NET MVC because of it’s possibility to extending, modifying and doing pretty much whatever you want with it. And while I’ve got rather proficient in plugging stuff in it’s pipeline and/or doing custom stuff like routing, binding or results, it never changed one fact about MVC – it’s big, really big. And… Read More »

Joining, Grouping and GroupJoining in LINQ

By | January 31, 2017

As you may already know I really, really like LINQ. One day I’ll probably join together all my posts about this incredible featureand release pretty neat compendium/one-oh-one about this great feature. But while I’m not sitting and joining every post from this blog that have word “LINQ” in it into one, big pile, let’s talk a bit about… Read More »

LINQ – don’t be afraid of Aggregate

By | January 6, 2017

Aggregate is one of the most fun and powerful methods in LINQ. Sadly it’s also one of the most underused and “scary” ones. I hope that after reading this post you will understand Aggregate a bit more, know when to use it and won’t be afraid of doing so. So let’s have a look at MSDN.… Read More »

Enumy jako flagi i wykorzystanie operatorów bitowych (XMASS Edition)

By | December 24, 2016

Niektórzy w tej chwili lepią pierogi, próbują nie wrócić do domu z pangą, latają za zapomnianym prezentem niczym Arnold za Turbo-Manem lub w ciepłym, przytulnym domku wieszają na choince bombki. Ja z kolei mam cały dzień dla siebie i jego część postanowiłem na napisanie krótkiego posta o tym jak możecie wykorzystać enumy jako flagi i… Read More »

Regex.CompileToAssembly() – Prekompilacja wyrażeń regularnych i zautomatyzowanie procesu

By | December 19, 2016

W ostatnim poście opisałem i porównałem wydajność różnych sposobów wykorzystania regexów. Zdecydowanie najlepiej sprawowało się wyrażenie, które przygotowałem za pomocą metody Regex.CompileToAssembly(). Dziś omówię ją nieco dokładniej i podpowiem, jak zautomatyzować cały proces aktualizowania zebranych w oddzielnym assembly regexów. By odnaleźć się w kontekście, zachęcam do przeczytania poprzedniego posta, bo w dużej mierze kontynuuję dziś wątki,… Read More »

Przyspieszamy Regexy – prekompilacja

By | December 13, 2016

Ostatnio musiałem trochę popracować z ukochanymi przez niektórych regexami. Nie mogę o sobie powiedzieć, że klepię z pamięci skomplikowane patterny, ale wyrażenia regularne są naprawdę świetną i użyteczną funkcjonalnością. Zupełnym przypadkiem zetknąłem się ze sposobem na przyspieszenie ich działania za pomocą metody Regex.CompileToAssembly(). Na potrzeby testów korzystam z czterech sposobów używania klasy Regex. W każdym z nich… Read More »