Skip to content

Instantly share code, notes, and snippets.

@plentysmart
plentysmart / gist:93775424af5bafe7c254
Last active August 29, 2015 14:09
BatchInsert - timestamp test
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
@plentysmart
plentysmart / gist:ffa7e45cbf8f5489d552
Last active August 29, 2015 14:09
Azure service bus maximum message size test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ServiceBus;
using Microsoft.ServiceBus.Messaging;
using Xunit;
@plentysmart
plentysmart / gist:71254e57acea24e23ee6
Created November 8, 2014 14:23
DocumentDB - Optimistic Concurrency
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
public class CartService : ICartService
{
private readonly ICartRepository _cartRepository;
private readonly IProductRepository _productRepository;
public CartService(ICartRepository cartRepository, IProductRepository productRepository)
{
_cartRepository = cartRepository;
_productRepository = productRepository;
}