Permalink
Browse files

make Turbocharged.Beanstalk buildable

  • Loading branch information...
Stephen Jennings
Stephen Jennings committed Jun 16, 2017
1 parent 61d7c86 commit 1d5009ca5a2edd32ab4770c038ac46772c754efe
@@ -53,7 +53,7 @@ public void Dispose()
using (_stream)
{
_receiveTask.Dispose();
_client.Close();
_client.Dispose();
}
}

This file was deleted.

Oops, something went wrong.
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -9,36 +8,38 @@ namespace Turbocharged.Beanstalk
{
static class Trace
{
readonly static TraceSource source = new TraceSource("Turbocharged.Beanstalk");
// Commented out until I find a suitable replacement in .NET Standard
// readonly static TraceSource source = new TraceSource("Turbocharged.Beanstalk");
public static void Info(string message)
{
source.TraceInformation(message);
// source.TraceInformation(message);
}
public static void Info(string format, params object[] args)
{
source.TraceInformation(format, args);
// source.TraceInformation(format, args);
}
public static void Error(string message)
{
source.TraceEvent(TraceEventType.Error, 0, message);
// source.TraceEvent(TraceEventType.Error, 0, message);
}
public static void Error(string format, params object[] args)
{
source.TraceEvent(TraceEventType.Error, 0, format, args);
// source.TraceEvent(TraceEventType.Error, 0, format, args);
}
public static void Verbose(string message)
{
source.TraceEvent(TraceEventType.Verbose, 0, message);
// source.TraceEvent(TraceEventType.Verbose, 0, message);
}
public static void Verbose(string format, params object[] args)
{
source.TraceEvent(TraceEventType.Verbose, 0, format, args);
// source.TraceEvent(TraceEventType.Verbose, 0, format, args);
}
}
}
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.4</TargetFramework>
</PropertyGroup>
</Project>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
</ItemGroup>
</Project>

0 comments on commit 1d5009c

Please sign in to comment.