Initial commit of working dotnet core version
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Net.Sockets;
|
||||
using System.Threading;
|
||||
using TorControlLibrary.Responses;
|
||||
using TorControlLibrary.Exceptions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TorControlLibrary
|
||||
{
|
||||
@@ -327,11 +328,8 @@ namespace TorControlLibrary
|
||||
//server-generated events
|
||||
case "650":
|
||||
EventResponse eventResp = EventResponse.Parse(line);
|
||||
if(ServerEvent != null)
|
||||
foreach (Action<EventResponse> serverEventResponse in ServerEvent.GetInvocationList())
|
||||
{
|
||||
serverEventResponse.BeginInvoke(eventResp, null, null);
|
||||
}
|
||||
if (ServerEvent != null)
|
||||
Task.Run(() => ServerEvent(eventResp));
|
||||
break;
|
||||
default:
|
||||
if (line.StartsWith("5"))
|
||||
|
||||
@@ -1,73 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{EF216A86-F64F-4C76-9A86-EEE8E5484EF9}</ProjectGuid>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TorControlLibrary</RootNamespace>
|
||||
<AssemblyName>TorControlLibrary</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<SccProjectName>Svn</SccProjectName>
|
||||
<SccLocalPath>Svn</SccLocalPath>
|
||||
<SccAuxPath>Svn</SccAuxPath>
|
||||
<SccProvider>SubversionScc</SccProvider>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||
<PackageReference Include="Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version="0.3.330701">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Exceptions\TorAuthenticationException.cs" />
|
||||
<Compile Include="Exceptions\TorOneCircuitException.cs" />
|
||||
<Compile Include="Exceptions\TorUnknownCircuitException.cs" />
|
||||
<Compile Include="Exceptions\TorException.cs" />
|
||||
<Compile Include="Exceptions\TorUnknownStreamException.cs" />
|
||||
<Compile Include="ExitPolicy.cs" />
|
||||
<Compile Include="Responses\CircuitStatusResponse.cs" />
|
||||
<Compile Include="ControlConnection.cs" />
|
||||
<Compile Include="Responses\CommandResponse.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Responses\ErrorResponse.cs" />
|
||||
<Compile Include="Responses\EventResponse.cs" />
|
||||
<Compile Include="Responses\EventTypes.cs" />
|
||||
<Compile Include="Responses\ParseAttribute.cs" />
|
||||
<Compile Include="Responses\RouterDescription.cs" />
|
||||
<Compile Include="Responses\RouterStatusResponse.cs" />
|
||||
<Compile Include="Responses\StreamStatusResponse.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
Reference in New Issue
Block a user