Tips

.Net Tips – Using custom ServiceThrottlingAttribute to specify WCF service throttling behaviour

If you have created a WCF service in the past then I assume you’re aware that WCF is very heavily configuration-driven and that you can specify the service behaviour including the throttling parameters (MaxConcurrentCalls, MaxConcurrentInstances, MaxConcurrentSessions) in the config file. But to specify the type of service (PerCall, PerSession or Singleton) you need to apply …

.Net Tips – Using custom ServiceThrottlingAttribute to specify WCF service throttling behaviour Read More »

.Net Tips – using InternalsVisibleTo attribute to help testing non-public methods

Oh, the Pain! For a long time, unit testing non-public methods in C# has been a pain in the back side. In order to test a non-public method (most likely private methods) you have a number of choices each with an undesired effect: The easiest way out is to make the methods public. However, this …

.Net Tips – using InternalsVisibleTo attribute to help testing non-public methods Read More »

Castle Windsor Tips – specifying generic types in config file

If you have an interface like this: with a concrete class like this, which you want to wire up with Castle: Then here’s the syntax to specify the component in your Castle Windsor configuration file Similarly, imagine if you have more than one generic type parameter: Remember, you need to use the back tick (`), …

Castle Windsor Tips – specifying generic types in config file Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close