Skip to content

Instantly share code, notes, and snippets.

@slabarque
slabarque / Program
Created November 18, 2013 14:31
A small application that creates a number of documents in Raven and performs concurrent updates on them while also publishing a message to MSMQ. When playing with the parameters noParallelTests and noParallelTxUpdates you can see that sometimes not all updates where performed, even when DTC could succesfully commit.
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Transactions;
using Raven.Abstractions.Exceptions;
using Raven.Client;
using Raven.Client.Document;
namespace TestRavenConcurrentDTC
@slabarque
slabarque / AppCmdProviderBase
Created December 18, 2013 10:48
a custome AppPoolConfigProvider implementation for creating an apppool during msdeploy deployments
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Xml.XPath;
using Microsoft.Web.Deployment;
@slabarque
slabarque / ProgramChecksSchema.cs
Last active February 6, 2019 10:32
Demonstrates a problem with creating SqlStreamStore schema. ProgramCreatesSchema.cs tries to create the schema. ProgramChecksSchema.cs checks if the schema exists. If ProgramChecksSchema is running, ProgramCreatesSchema is getting timeout exception upon schema creation. If ProgramChecksSchema is not running, then schema is created succesfully
using System;
using System.Threading;
using SqlStreamStore;
namespace TestStreamStoreSchemaExists
{
class Program
{
static void Main(string[] args)
{