Home » .NET (page 10)

.NET

Dependency injection in WCF

Dependency injection is a software design pattern that implements inversion of control for resolving dependencies and is highly recommended for building scalable, testable and maintainable applications. In this very blog we have seen many times this pattern, mostly in ASP.NET MVC and ASP.NET Web API related posts where for example dependencies (data repositories or middle services) were injected into MVC ...

Read More »

Difference Between Int32.Parse, Convert.ToInt32, and Int32.TryParse – CodeProject

Every C#/VB/.NET developer should read Difference Between Int32.Parse, Convert.ToInt32, and Int32.TryParse – CodeProject. Then also read TryParse with default values. It is all about handling values that are not Integers, Overflow values and Nulls. There are subtle differences, in the handling of the methods, and the exceptions they could throw: ArgumentNullException, FormatException and OverflowException. Finally read all about the NumberStyles enumeration, IFormatProvider interface and CultureInfo (especially the ...

Read More »

The data mapper in Griffin Framework now includes a fluent api

The data mapper in Griffin.Framework have been updated to support fluent mapping and some other new features. Like in previous versions you do not need to do anything special in your mappings if the table matches the class. Just create an empty mapping class: public class MyMapper : CrudEntityMapper<MyEntity> { public MyMapper() : base("TableName") { } } It’s when you ...

Read More »

What is new in RavenDB 3.5 My thread pool is smarter

The .NET thread pool is a really amazing piece of technology, and it is suitable for a wide range of usages. RavenDB has been making use of it for almost of all concurrent work since the very beginning. In RavenDB 3.5, we have decided to change that. RavenDB have a lot of parallel execution requirements, but most of them have ...

Read More »

Detailed frame-time performance measurement

Performance has always been an important aspect of game development. From the early days, where the processing power of hardware was extremely limited, to this day, where we may want to simulate hundreds of thousands of particles at once. There are many ways to achieve good performance – and thus providing a better experience to the player. From following best ...

Read More »

Production postmortem: The case of the native memory leak

This one is a pretty recent one. A customer complained about high memory usage in RavenDB under moderate usage. That was a cause for concern, since we care a lot about our memory utilization. So we started investigating that, and it turned out that we were wrong, the problem wasn’t with RavenDB, it was with the RavenDB Client Library. The ...

Read More »

Production Postmortem The case of the intransigent new database

A customer called us to tell that they had a problem with RavenDB. As part of their process for handling new customers, they would create a new database, setup indexes, and then direct all the queries for that customer to that database. Unfortunately, this system that has worked so well in development died a horrible death in production.But, and this ...

Read More »

Getting faster downloads from MSDN with IE11

I use MSDN a lot to download MSDN licensed software and patches and one of the issues I’ve seen with these downloads is the download speed. When I download any trial version of software from public site, the download speed is excellent; but, when switching to MSDN downloads the speed is slow and there are disruptions. This may be because ...

Read More »