This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json.Linq; | |
using System; | |
using System.Configuration; | |
using System.Net; | |
using System.Runtime.Caching; | |
using System.Xml; | |
namespace Api.Core | |
{ | |
/// <summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using KafkaNet; | |
using KafkaNet.Model; | |
using KafkaNet.Protocol; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Web.Http; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//LinqPad | |
File.Delete("c:\\md5-list.txt"); | |
var hashes = new List<string>(); | |
var bytes = new byte[16]; | |
using (var rng = new RNGCryptoServiceProvider()) | |
{ | |
for (int i=0; i<500000; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace System | |
{ | |
/// <summary> | |
/// Extensions to <see cref="DateTimeOffset"/> | |
/// </summary> | |
public static class DateTimeOffsetExtensions | |
{ | |
/// <summary> | |
/// Returns the localised date-time as GMT formatted for HTTP headers, e.g. | |
/// Thu, 09 Oct 2014 10:31:33 GMT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TopologyBuilder topologyBuilder = new TopologyBuilder("MyEventProcessorRealTimeStorm"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.SCP; | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
namespace My.Storm.App.Tests | |
{ | |
/// <summary> | |
/// Simple stub for emitting Event Hub-style tuples to Storm context. | |
/// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.ServiceModel.Description; | |
using x.y.z.ServiceAgents.DynamicsCrm.OrganizationService; | |
using Microsoft.Xrm.Sdk; | |
using Microsoft.Xrm.Sdk.Client; | |
namespace x.y.z.Services.Quotes | |
{ | |
public static class SaveQuote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace Sixeyed.Framework | |
{ | |
public class TaskBatcher : IDisposable | |
{ | |
private int _batchSize; | |
private int _batchIndex = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
/****** Object: Database [Domain] Script Date: 08/01/2014 20:22:31 ******/ | |
CREATE DATABASE [Domain] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'Domain', FILENAME = N'C:\Databases\Domain.mdf' , SIZE = 32832KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) | |
LOG ON | |
( NAME = N'Domain_log', FILENAME = N'C:\Databases\Domain_log.ldf' , SIZE = 152384KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sixeyed.NServiceBus.Mutators; | |
using log4net.Config; | |
using Microsoft.Practices.Unity; | |
using NServiceBus; | |
using NServiceBus.Features; | |
using nsb = NServiceBus; | |
namespace Sixeyed.NServiceBus | |
{ | |
public static class DefaultBus |
OlderNewer