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
//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
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
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 System; | |
using System.Runtime.Caching; | |
using System.Web.Http; | |
using System.Xml; | |
namespace Sixeyed.Api.Core | |
{ | |
public class ContentCache | |
{ | |
private static MemoryCache _Cache; |
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 SampleApi.Results; | |
using System; | |
using System.Net.Http; | |
using System.Web.Http; | |
namespace SampleApi | |
{ | |
public static class IHttpActionResultExtensions | |
{ | |
public static IHttpActionResult With(this IHttpActionResult inner, string responsePhrase = null, Action<HttpResponseMessage> responseAction = null) |
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 |
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.Collections.Generic; | |
namespace Sixeyed.Diagnostics.Models | |
{ | |
public class DiagnosticCheckCollection | |
{ | |
public string CollectionName { get; set; } | |
public bool? Passed { get; set; } |
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 System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace Sixeyed.Framework | |
{ | |
public class TaskBatcher : IDisposable | |
{ | |
private int _batchSize; | |
private int _batchIndex = 0; |