Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 697ca830be90e59d0b7aa0c3050ca7f3bf078f29 @vktr vktr committed Jul 4, 2012
Showing with 3,360 additions and 0 deletions.
  1. +13 −0 .gitignore
  2. +106 −0 Hadouken.sln
  3. +8 −0 nuget.config
  4. +76 −0 src/Hosts/Hadouken.Hosts.CommandLine/Hadouken.Hosts.CommandLine.csproj
  5. +26 −0 src/Hosts/Hadouken.Hosts.CommandLine/Program.cs
  6. +11 −0 src/Hosts/Hadouken.Hosts.CommandLine/Properties/AssemblyInfo.cs
  7. +29 −0 src/Hosts/Hadouken.Hosts.CommandLine/app.config
  8. +4 −0 src/Hosts/Hadouken.Hosts.CommandLine/packages.config
  9. +70 −0 src/Main/Hadouken.Impl.BitTorrent/Hadouken.Impl.BitTorrent.csproj
  10. +103 −0 src/Main/Hadouken.Impl.BitTorrent/HdknTorrent.cs
  11. +153 −0 src/Main/Hadouken.Impl.BitTorrent/MonoTorrentEngine.cs
  12. +11 −0 src/Main/Hadouken.Impl.BitTorrent/Properties/AssemblyInfo.cs
  13. +4 −0 src/Main/Hadouken.Impl.BitTorrent/packages.config
  14. +21 −0 src/Main/Hadouken.Impl/Data/DefaultMigratorRunner.cs
  15. +108 −0 src/Main/Hadouken.Impl/Data/FluentNhibernateDataRepository.cs
  16. +30 −0 src/Main/Hadouken.Impl/Data/Migrations/CreatePluginInfoTable_001.cs
  17. +28 −0 src/Main/Hadouken.Impl/Data/Migrations/CreateSettingTable_001.cs
  18. +34 −0 src/Main/Hadouken.Impl/Data/Migrations/CreateTorrentInfoTable_001.cs
  19. +125 −0 src/Main/Hadouken.Impl/Hadouken.Impl.csproj
  20. +46 −0 src/Main/Hadouken.Impl/Hosting/DefaultHost.cs
  21. +15 −0 src/Main/Hadouken.Impl/Http/ActionCacheItem.cs
  22. +26 −0 src/Main/Hadouken.Impl/Http/Controllers/Api/TorrentsController.cs
  23. +19 −0 src/Main/Hadouken.Impl/Http/Controllers/HomeController.cs
  24. +19 −0 src/Main/Hadouken.Impl/Http/Controllers/SetupController.cs
  25. +175 −0 src/Main/Hadouken.Impl/Http/DefaultHttpServer.cs
  26. +37 −0 src/Main/Hadouken.Impl/Http/HttpContext.cs
  27. +159 −0 src/Main/Hadouken.Impl/Http/HttpRequest.cs
  28. +130 −0 src/Main/Hadouken.Impl/Http/HttpResponse.cs
  29. +47 −0 src/Main/Hadouken.Impl/IO/LocalFileSystem.cs
  30. +60 −0 src/Main/Hadouken.Impl/Logging/ConsoleLogger.cs
  31. +44 −0 src/Main/Hadouken.Impl/Messaging/DefaultMessageBus.cs
  32. +35 −0 src/Main/Hadouken.Impl/Plugins/AssemblyPluginLoader.cs
  33. +141 −0 src/Main/Hadouken.Impl/Plugins/DefaultPluginFactory.cs
  34. +39 −0 src/Main/Hadouken.Impl/Plugins/DirectoryPluginLoader.cs
  35. +17 −0 src/Main/Hadouken.Impl/Plugins/PluginExtensions.cs
  36. +56 −0 src/Main/Hadouken.Impl/Plugins/ZipPluginLoader.cs
  37. +11 −0 src/Main/Hadouken.Impl/Properties/AssemblyInfo.cs
  38. +12 −0 src/Main/Hadouken.Impl/packages.config
  39. +61 −0 src/Main/Hadouken.Messages/Hadouken.Messages.csproj
  40. +16 −0 src/Main/Hadouken.Messages/IPluginLoading.cs
  41. +15 −0 src/Main/Hadouken.Messages/ITorrentCompleted.cs
  42. +11 −0 src/Main/Hadouken.Messages/Properties/AssemblyInfo.cs
  43. +33 −0 src/Main/Hadouken/BitTorrent/IBitTorrentEngine.cs
  44. +11 −0 src/Main/Hadouken/BitTorrent/IPeer.cs
  45. +28 −0 src/Main/Hadouken/BitTorrent/ITorrent.cs
  46. +13 −0 src/Main/Hadouken/BitTorrent/ITorrentFile.cs
  47. +11 −0 src/Main/Hadouken/BitTorrent/ITracker.cs
  48. +11 −0 src/Main/Hadouken/BitTorrent/Priority.cs
  49. +19 −0 src/Main/Hadouken/BitTorrent/TorrentState.cs
  50. +18 −0 src/Main/Hadouken/ComponentAttribute.cs
  51. +13 −0 src/Main/Hadouken/ComponentLifestyle.cs
  52. +29 −0 src/Main/Hadouken/Data/DataRepositoryExtensions.cs
  53. +21 −0 src/Main/Hadouken/Data/IDataRepository.cs
  54. +13 −0 src/Main/Hadouken/Data/IMigratorRunner.cs
  55. +12 −0 src/Main/Hadouken/Data/IModel.cs
  56. +24 −0 src/Main/Hadouken/Data/Models/PluginInfo.cs
  57. +14 −0 src/Main/Hadouken/Data/Models/Setting.cs
  58. +22 −0 src/Main/Hadouken/Data/Models/TorrentInfo.cs
  59. +105 −0 src/Main/Hadouken/Hadouken.csproj
  60. +13 −0 src/Main/Hadouken/Hosting/IHost.cs
  61. +13 −0 src/Main/Hadouken/Http/ActionResult.cs
  62. +20 −0 src/Main/Hadouken/Http/ContentResult.cs
  63. +17 −0 src/Main/Hadouken/Http/Controller.cs
  64. +12 −0 src/Main/Hadouken/Http/HttpGetAttribute.cs
  65. +18 −0 src/Main/Hadouken/Http/HttpMethodAttribute.cs
  66. +13 −0 src/Main/Hadouken/Http/IController.cs
  67. +15 −0 src/Main/Hadouken/Http/IHttpContext.cs
  68. +15 −0 src/Main/Hadouken/Http/IHttpHandlerExtensions.cs
  69. +42 −0 src/Main/Hadouken/Http/IHttpRequest.cs
  70. +34 −0 src/Main/Hadouken/Http/IHttpResponse.cs
  71. +13 −0 src/Main/Hadouken/Http/IHttpServer.cs
  72. +22 −0 src/Main/Hadouken/Http/JsonResult.cs
  73. +18 −0 src/Main/Hadouken/Http/RouteAttribute.cs
  74. +25 −0 src/Main/Hadouken/Http/ViewResult.cs
  75. +11 −0 src/Main/Hadouken/IComponent.cs
  76. +23 −0 src/Main/Hadouken/IO/IFileSystem.cs
  77. +110 −0 src/Main/Hadouken/Kernel.cs
  78. +18 −0 src/Main/Hadouken/Logging/ILogger.cs
  79. +12 −0 src/Main/Hadouken/Messaging/IMessage.cs
  80. +15 −0 src/Main/Hadouken/Messaging/IMessageBus.cs
  81. +13 −0 src/Main/Hadouken/Plugins/IPlugin.cs
  82. +18 −0 src/Main/Hadouken/Plugins/IPluginFactory.cs
  83. +14 −0 src/Main/Hadouken/Plugins/IPluginLoader.cs
  84. +21 −0 src/Main/Hadouken/Plugins/PluginAttribute.cs
  85. +11 −0 src/Main/Hadouken/Properties/AssemblyInfo.cs
  86. +26 −0 src/Main/Hadouken/Reflection/ReflectionExtensions.cs
  87. +4 −0 src/Main/Hadouken/packages.config
  88. +80 −0 src/Tests/Hadouken.UnitTests/Hadouken.UnitTests.csproj
  89. +35 −0 src/Tests/Hadouken.UnitTests/Messaging/MessageBusTests.cs
  90. +11 −0 src/Tests/Hadouken.UnitTests/Properties/AssemblyInfo.cs
  91. +5 −0 src/Tests/Hadouken.UnitTests/packages.config
  92. +4 −0 src/WebUI/css/hdkn.css
  93. +11 −0 src/WebUI/index.html
  94. +9 −0 src/WebUI/setup.html
  95. BIN tools/nuget-1.8.40002/NuGet.exe
  96. +71 −0 tools/nuget-1.8.40002/NuGet.targets
@@ -0,0 +1,13 @@
+# Ignore /lib folder
+lib/
+
+# Build output
+build/
+
+src/**/**/bin
+src/**/**/obj
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
@@ -0,0 +1,106 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Main", "Main", "{8FBDAD44-C335-4CEB-BD96-FB38CEB2811A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken", "src\Main\Hadouken\Hadouken.csproj", "{483BDD2E-74E7-4047-BAB4-99C7A25BB56D}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{6A5BA16F-E1F2-4566-A42F-7D0F4B18FC4A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken.UnitTests", "src\Tests\Hadouken.UnitTests\Hadouken.UnitTests.csproj", "{45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken.Impl", "src\Main\Hadouken.Impl\Hadouken.Impl.csproj", "{28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hosts", "Hosts", "{F0F27C95-81A1-4A5F-AEE9-27E8D56EF1CC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken.Hosts.CommandLine", "src\Hosts\Hadouken.Hosts.CommandLine\Hadouken.Hosts.CommandLine.csproj", "{2984BDE0-A158-4ED6-9F20-E690E28EB44B}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken.Messages", "src\Main\Hadouken.Messages\Hadouken.Messages.csproj", "{DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hadouken.Impl.BitTorrent", "src\Main\Hadouken.Impl.BitTorrent\Hadouken.Impl.BitTorrent.csproj", "{E5E2A7E9-E908-4E07-A948-E8B38DD139E5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D}.Release|x86.ActiveCfg = Release|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4}.Release|x86.ActiveCfg = Release|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}.Release|x86.ActiveCfg = Release|Any CPU
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|Any CPU.Build.0 = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|x86.ActiveCfg = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Debug|x86.Build.0 = Debug|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|Any CPU.ActiveCfg = Release|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|Any CPU.Build.0 = Release|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|Mixed Platforms.Build.0 = Release|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|x86.ActiveCfg = Release|x86
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B}.Release|x86.Build.0 = Release|x86
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8}.Release|x86.ActiveCfg = Release|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5}.Release|x86.ActiveCfg = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {483BDD2E-74E7-4047-BAB4-99C7A25BB56D} = {8FBDAD44-C335-4CEB-BD96-FB38CEB2811A}
+ {28B6D10B-1CA2-43A9-B247-FAA7DD2155FA} = {8FBDAD44-C335-4CEB-BD96-FB38CEB2811A}
+ {DEA098A4-8A50-4A2D-A19B-D457ABA1FEE8} = {8FBDAD44-C335-4CEB-BD96-FB38CEB2811A}
+ {E5E2A7E9-E908-4E07-A948-E8B38DD139E5} = {8FBDAD44-C335-4CEB-BD96-FB38CEB2811A}
+ {45774A72-4DE7-4E52-ABB0-9E728FFD1CC4} = {6A5BA16F-E1F2-4566-A42F-7D0F4B18FC4A}
+ {2984BDE0-A158-4ED6-9F20-E690E28EB44B} = {F0F27C95-81A1-4A5F-AEE9-27E8D56EF1CC}
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <solution>
+ <add key="disableSourceControlIntegration" value="true" />
+ <repositoryPath>lib/</repositoryPath>
+ </solution>
+ <repositoryPath>lib/</repositoryPath>
+</configuration>
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{2984BDE0-A158-4ED6-9F20-E690E28EB44B}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Hadouken.Hosts.CommandLine</RootNamespace>
+ <AssemblyName>Hadouken.Hosts.CommandLine</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <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|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </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" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\..\Main\Hadouken.Impl.BitTorrent\Hadouken.Impl.BitTorrent.csproj">
+ <Project>{E5E2A7E9-E908-4E07-A948-E8B38DD139E5}</Project>
+ <Name>Hadouken.Impl.BitTorrent</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\Main\Hadouken.Impl\Hadouken.Impl.csproj">
+ <Project>{28B6D10B-1CA2-43A9-B247-FAA7DD2155FA}</Project>
+ <Name>Hadouken.Impl</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\Main\Hadouken\Hadouken.csproj">
+ <Project>{483BDD2E-74E7-4047-BAB4-99C7A25BB56D}</Project>
+ <Name>Hadouken</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="app.config" />
+ <None Include="packages.config" />
+ </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>
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Hadouken.Hosting;
+
+namespace Hadouken.Hosts.CommandLine
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ // load assemblies into appdomain
+ var impl = AppDomain.CurrentDomain.Load("Hadouken.Impl");
+ var implBitTorrent = AppDomain.CurrentDomain.Load("Hadouken.Impl.BitTorrent");
+
+ Kernel.Register(impl, implBitTorrent);
+
+ var host = Kernel.Get<IHost>();
+ host.Load();
+
+ Console.ReadLine();
+ }
+ }
+}
@@ -0,0 +1,11 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Hadouken.Hosts.CommandLine")]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+ <connectionStrings>
+ <add name="hdkn" connectionString="Data Source=hdkn.db; Version=3;" />
+ </connectionStrings>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <dependentAssembly>
+ <assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="Ninject.Extensions.ChildKernel" publicKeyToken="c7192dc5380945e7" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-3.3.1.4000" newVersion="3.3.1.4000" />
+ </dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Data.SQLite" publicKeyToken="db937bc2d44ff139" culture="neutral" />
+ <bindingRedirect oldVersion="0.0.0.0-1.0.81.0" newVersion="1.0.81.0" />
+ </dependentAssembly>
+ </assemblyBinding>
+ </runtime>
+ <startup>
+ <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
+ </startup>
+</configuration>
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Ninject" version="3.0.1.10" />
+</packages>
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{E5E2A7E9-E908-4E07-A948-E8B38DD139E5}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Hadouken.Impl.BitTorrent</RootNamespace>
+ <AssemblyName>Hadouken.Impl.BitTorrent</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
+ <RestorePackages>true</RestorePackages>
+ </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>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="MonoTorrent">
+ <HintPath>..\..\..\lib\MonoTorrent.0.9.0\lib\net20\MonoTorrent.dll</HintPath>
+ </Reference>
+ <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" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="HdknTorrent.cs" />
+ <Compile Include="MonoTorrentEngine.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Hadouken\Hadouken.csproj">
+ <Project>{483BDD2E-74E7-4047-BAB4-99C7A25BB56D}</Project>
+ <Name>Hadouken</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <Import Project="$(SolutionDir)\tools\nuget-1.8.40002\nuget.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>
Oops, something went wrong.

0 comments on commit 697ca83

Please sign in to comment.