Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace ClassLibrary4
{
public class Test1 : BaseTest
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace ClassLibrary4
{
public class Test1 //: BaseTest
{
using System;
using System.Data;
using System.Data.SqlClient;
using System.Transactions;
using IsolationLevel = System.Transactions.IsolationLevel;
namespace ConsoleApplication15
{
class Program
{
function Set-EmailServerDetails([Parameter(Mandatory=$true)]$IISSite)
{
$EmailServerUserName = Retrieve-OctopusVariableIfExists -Name "EmailServerUserName";
if ($EmailServerUserName -ne $null)
{
Set-WebConfigurationProperty -Filter "/system.net/mailSettings/smtp/network" -Name "userName" -PSPath $IISSite -Value $EmailServerUserName
Log "EmailServerUserName key has been updated";
}
$EmailServerPassword = Retrieve-OctopusVariableIfExists -Name "EmailServerPassword";
[TestMethod]
public void T()
{
var entries = new List<DataStreamEntry>();
var stopwatch1 = Stopwatch.StartNew();
for (var i = 0; i < 1500; i++)
{
var transfer = new AllocationTransferCreated(i, "asdfasdf", new AllocationIdentifier(1, 1, 2014), DateRange.EndOfMonth(DateTimeOffset.Now),
new AllocationIdentifier(1, 2, 2014), DateRange.EndOfMonth(DateTimeOffset.Now), 12, 12,
@pawelpabich
pawelpabich / NLog.config
Created October 12, 2014 13:35
NLog bug repro
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
<targets>
<target name="Console" xsi:type="Console"
layout="${logger} ${level} ${message} ${exception:format=tostring}"
/>
</targets>
<rules>
<logger name="NamespaceToFilterOut.*" minlevel="Debug" final="true" />
First 5 tries.
2014-10-13 18:20:40.9418 Debug 25 Handling SendEmail command System.Collections.Generic.List`1[System.String] Account registration
2014-10-13 18:20:40.9418 Info 25 Failed to process message System.ApplicationException: Only domain.com domain can be used for emails in FullCI. 77dce7f52d6146db9952e9599b605079@77dce7f52d6146db9952e9599b605079.77dce7f52d6146db9952e9599b605079 does not belong to it.
at Namespace.Web.Infrastructure.Emails.EmailDispatcher.AssertRecipientsAreLimitedToKnownDomain(IEnumerable`1 recipients) in c:\BuildAgent\work\6433a48383cd8d3\Source\Namespace.Web\Infrastructure\Emails\EmailDispatcher.cs:line 71
at Namespace.Web.Infrastructure.Emails.EmailDispatcher.Handle(SendEmail email) in c:\BuildAgent\work\6433a48383cd8d3\Source\Namespace.Web\Infrastructure\Emails\EmailDispatcher.cs:line 31
at NServiceBus.Unicast.HandlerInvocationCache.Invoke(Object handler, Object message, Dictionary`2 dictionary) in y:\BuildAgent\work\31f8c64a6e8a2d7c\src\NServiceBus.Core\Unicast\Handle
using System;
using System.Data.SqlClient;
namespace SqlTests
{
class Program
{
private static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
function Get-Never
{
return never;
}
Get-Never
using System;
using System.Threading;
using Akka.Actor;
namespace Actors
{
class Program
{
static void Main(string[] args)
{