Welcome to Atalasoft Community Sign in | Join | Help

Browse by Tags

All Tags » .NET   (RSS)

Detecting SearchServer (and other services) in SharePoint farm

Jake and I just got into an interesting problem while working on search functions for VizitSP . My code was using types from Microsoft.Office.Server.Search, which is not available if SearchServer is not installed, so trying to access search functions

A word of praise for relevant error messages

What do you think about the following code: byte [] privateParams, publicParams; using (var rsa = new System.Security.Cryptography.RSACryptoServiceProvider()) { privateParams = rsa.ExportCspBlob( true ); publicParams = rsa.ExportCspBlob( false ); } using

ILMerge and ConfigurationSection

Note to self: dearest Dan! If you happen to use ILMerge with an exe file, please make sure you check the app.config file. Why?  Well, suppose you have a custom settings section in your app.config, just like this: < configSections > < sectionGroup
Posted by dbarvitsky | 0 Comments

Which formats does OpenOffice support?

What can you extract from the following dialogue between P rospect and E mployee? P: Which formats does <application name> support? E: Which one are you interested in? P: Err… Give me all you have! E: We support many formats, including… which one
Posted by dbarvitsky | 0 Comments
Filed under: , , ,

My solution for unit testing concurrent code in NUnit

I blogged recently about testing parallel code in NUnit. I think I settled with requirements: I want to use threads; I want to use assertions in threads; I want to control how threads step on each other; Too bad that solutions I tested did not fit 100%.
Posted by dbarvitsky | 0 Comments

Techniques for testing concurrent code in NUnit

Last time I blogged about a way to make concurrent unit tests deterministic. This time I’d like to focus on the technical aspects, namely NUnit . Let us start with the following test: [Test] public void TestThread() { int n = 0; var thread1 = new Thread(()
Posted by dbarvitsky | 0 Comments

Thinking aloud: concurrent Unit tests

While working on conversion service for VizitSP , I run once again into unit testing the concurrent code. The problem is not new, yet I did not see 100% solution yet. The difficulty is coming from the fact that unit tests are deterministic to the bone
Posted by dbarvitsky | 0 Comments
Filed under: , ,

Deploying debug assemblies in the GAC

Don’t ask me why, but at some point I ended up with the necessity of having debug assemblies in the GAC. OK, if you still ask, it is about SharePoint remote debugging. After dragging-and-dropping PDBs and DLLs for 651th time I almost started feeling an
Posted by dbarvitsky | 0 Comments