Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Commit 2cf6fbf

Browse files
committed
Rewrite to support multipledump
1 parent 684a52e commit 2cf6fbf

File tree

173 files changed

+113029
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+113029
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin
2+
obj
3+
**.user
4+
**.suo
5+
*ReSharper*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
using System.Web.Optimization;
2+
3+
namespace ObjectDumper.Test.App_Start
4+
{
5+
public class BundleConfig
6+
{
7+
// For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
8+
public static void RegisterBundles(BundleCollection bundles)
9+
{
10+
/* bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
11+
"~/Scripts/jquery-{version}.js"));
12+
13+
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
14+
"~/Scripts/jquery-ui-{version}.js"));
15+
16+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
17+
"~/Scripts/jquery.unobtrusive*",
18+
"~/Scripts/jquery.validate*"));
19+
20+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
21+
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
22+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
23+
"~/Scripts/modernizr-*"));
24+
25+
bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
26+
27+
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
28+
"~/Content/themes/base/jquery.ui.core.css",
29+
"~/Content/themes/base/jquery.ui.resizable.css",
30+
"~/Content/themes/base/jquery.ui.selectable.css",
31+
"~/Content/themes/base/jquery.ui.accordion.css",
32+
"~/Content/themes/base/jquery.ui.autocomplete.css",
33+
"~/Content/themes/base/jquery.ui.button.css",
34+
"~/Content/themes/base/jquery.ui.dialog.css",
35+
"~/Content/themes/base/jquery.ui.slider.css",
36+
"~/Content/themes/base/jquery.ui.tabs.css",
37+
"~/Content/themes/base/jquery.ui.datepicker.css",
38+
"~/Content/themes/base/jquery.ui.progressbar.css",
39+
"~/Content/themes/base/jquery.ui.theme.css"));*/
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Web.Mvc;
2+
3+
namespace ObjectDumper.Test.App_Start
4+
{
5+
public class FilterConfig
6+
{
7+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
8+
{
9+
filters.Add(new HandleErrorAttribute());
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Web.Mvc;
2+
using System.Web.Routing;
3+
4+
namespace ObjectDumper.Test.App_Start
5+
{
6+
public class RouteConfig
7+
{
8+
public static void RegisterRoutes(RouteCollection routes)
9+
{
10+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
11+
12+
routes.MapRoute(
13+
name: "Default",
14+
url: "{controller}/{action}/{id}",
15+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
16+
);
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Web.Http;
2+
3+
namespace ObjectDumper.Test.App_Start
4+
{
5+
public static class WebApiConfig
6+
{
7+
public static void Register(HttpConfiguration config)
8+
{
9+
config.Routes.MapHttpRoute(
10+
name: "DefaultApi",
11+
routeTemplate: "api/{controller}/{id}",
12+
defaults: new { id = RouteParameter.Optional }
13+
);
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#region License
2+
3+
// --------------------------------------------------
4+
// Copyright © OKB. All Rights Reserved.
5+
//
6+
// This software is proprietary information of OKB.
7+
// USE IS SUBJECT TO LICENSE TERMS.
8+
// --------------------------------------------------
9+
10+
#endregion
11+
12+
using System.Collections.Generic;
13+
using System.Web.Mvc;
14+
15+
namespace ObjectDumper.Test.Controllers
16+
{
17+
public class HomeController : Controller
18+
{
19+
//
20+
// GET: /Home/
21+
22+
public ActionResult Index()
23+
{
24+
ViewBag.TestModel = GetTestModel();
25+
return View(GetTestModel());
26+
}
27+
28+
29+
private static TestModel GetTestModel()
30+
{
31+
return new TestModel()
32+
{
33+
Id = 23423,
34+
AnonymousObjects = new List<object>()
35+
{
36+
new { Hehu = "sdfsdf", Tall = 324234 },
37+
new { Hehu = "sdfsdfsdf", Tall = 098 },
38+
new { Hahi = "asd", Tall = "sdf" }
39+
},
40+
Dictionary = new Dictionary<string, object>()
41+
{
42+
{ "key", 234234 },
43+
{ "key1", true },
44+
{ "key2", "sdfsf" },
45+
}
46+
};
47+
}
48+
}
49+
50+
public class TestModel
51+
{
52+
public IList<object> AnonymousObjects { get; set; }
53+
54+
public IDictionary<string, object> Dictionary { get; set; }
55+
public int Id { get; set; }
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%@ Application Codebehind="Global.asax.cs" Inherits="ObjectDumper.Test.MvcApplication" Language="C#" %>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System.Web.Http;
2+
using System.Web.Mvc;
3+
using System.Web.Optimization;
4+
using System.Web.Routing;
5+
6+
using ObjectDumper.Test.App_Start;
7+
8+
namespace ObjectDumper.Test
9+
{
10+
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
11+
// visit http://go.microsoft.com/?LinkId=9394801
12+
13+
public class MvcApplication : System.Web.HttpApplication
14+
{
15+
protected void Application_Start()
16+
{
17+
AreaRegistration.RegisterAllAreas();
18+
19+
WebApiConfig.Register(GlobalConfiguration.Configuration);
20+
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
21+
RouteConfig.RegisterRoutes(RouteTable.Routes);
22+
BundleConfig.RegisterBundles(BundleTable.Bundles);
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>
8+
</ProductVersion>
9+
<SchemaVersion>2.0</SchemaVersion>
10+
<ProjectGuid>{8D7F3616-D899-47E6-9276-C33D0A8B2CF3}</ProjectGuid>
11+
<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>ObjectDumper.Test</RootNamespace>
15+
<AssemblyName>ObjectDumper.Test</AssemblyName>
16+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
17+
<MvcBuildViews>false</MvcBuildViews>
18+
<UseIISExpress>true</UseIISExpress>
19+
<IISExpressSSLPort />
20+
<IISExpressAnonymousAuthentication />
21+
<IISExpressWindowsAuthentication />
22+
<IISExpressUseClassicPipelineMode />
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25+
<DebugSymbols>true</DebugSymbols>
26+
<DebugType>full</DebugType>
27+
<Optimize>false</Optimize>
28+
<OutputPath>bin\</OutputPath>
29+
<DefineConstants>DEBUG;TRACE</DefineConstants>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
</PropertyGroup>
33+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
34+
<DebugType>pdbonly</DebugType>
35+
<Optimize>true</Optimize>
36+
<OutputPath>bin\</OutputPath>
37+
<DefineConstants>TRACE</DefineConstants>
38+
<ErrorReport>prompt</ErrorReport>
39+
<WarningLevel>4</WarningLevel>
40+
</PropertyGroup>
41+
<ItemGroup>
42+
<Reference Include="Microsoft.CSharp" />
43+
<Reference Include="System" />
44+
<Reference Include="System.Data" />
45+
<Reference Include="System.Data.Entity" />
46+
<Reference Include="System.Drawing" />
47+
<Reference Include="System.Web.DynamicData" />
48+
<Reference Include="System.Web.Entity" />
49+
<Reference Include="System.Web.ApplicationServices" />
50+
<Reference Include="System.ComponentModel.DataAnnotations" />
51+
<Reference Include="System.Core" />
52+
<Reference Include="System.Data.DataSetExtensions" />
53+
<Reference Include="System.Xml.Linq" />
54+
<Reference Include="System.Web" />
55+
<Reference Include="System.Web.Extensions" />
56+
<Reference Include="System.Web.Abstractions" />
57+
<Reference Include="System.Web.Routing" />
58+
<Reference Include="System.Xml" />
59+
<Reference Include="System.Configuration" />
60+
<Reference Include="System.Web.Services" />
61+
<Reference Include="System.EnterpriseServices" />
62+
<Reference Include="EntityFramework">
63+
<HintPath>..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll</HintPath>
64+
</Reference>
65+
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
66+
<Private>True</Private>
67+
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
68+
</Reference>
69+
<Reference Include="Newtonsoft.Json">
70+
<HintPath>..\packages\Newtonsoft.Json.4.5.6\lib\net40\Newtonsoft.Json.dll</HintPath>
71+
</Reference>
72+
<Reference Include="System.Net.Http">
73+
<Private>True</Private>
74+
<HintPath>..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.dll</HintPath>
75+
</Reference>
76+
<Reference Include="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
77+
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.4.0.20710.0\lib\net40\System.Net.Http.Formatting.dll</HintPath>
78+
</Reference>
79+
<Reference Include="System.Net.Http.WebRequest">
80+
<Private>True</Private>
81+
<HintPath>..\packages\Microsoft.Net.Http.2.0.20710.0\lib\net40\System.Net.Http.WebRequest.dll</HintPath>
82+
</Reference>
83+
<Reference Include="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
84+
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll</HintPath>
85+
</Reference>
86+
<Reference Include="System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
87+
<HintPath>..\packages\Microsoft.AspNet.WebApi.WebHost.4.0.20710.0\lib\net40\System.Web.Http.WebHost.dll</HintPath>
88+
</Reference>
89+
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
90+
<Private>True</Private>
91+
<HintPath>..\packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.dll</HintPath>
92+
</Reference>
93+
<Reference Include="System.Web.Optimization">
94+
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.0.0\lib\net40\System.Web.Optimization.dll</HintPath>
95+
</Reference>
96+
<Reference Include="System.Web.Providers">
97+
<HintPath>..\packages\Microsoft.AspNet.Providers.Core.1.1\lib\net40\System.Web.Providers.dll</HintPath>
98+
</Reference>
99+
<Reference Include="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
100+
<Private>True</Private>
101+
<HintPath>..\packages\Microsoft.AspNet.Razor.2.0.20710.0\lib\net40\System.Web.Razor.dll</HintPath>
102+
</Reference>
103+
<Reference Include="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
104+
<Private>True</Private>
105+
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.dll</HintPath>
106+
</Reference>
107+
<Reference Include="System.Web.WebPages.Deployment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
108+
<Private>True</Private>
109+
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Deployment.dll</HintPath>
110+
</Reference>
111+
<Reference Include="System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
112+
<Private>True</Private>
113+
<HintPath>..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.WebPages.Razor.dll</HintPath>
114+
</Reference>
115+
<Reference Include="WebGrease">
116+
<Private>True</Private>
117+
<HintPath>..\packages\WebGrease.1.1.0\lib\WebGrease.dll</HintPath>
118+
</Reference>
119+
<Reference Include="Antlr3.Runtime">
120+
<Private>True</Private>
121+
<HintPath>..\packages\WebGrease.1.1.0\lib\Antlr3.Runtime.dll</HintPath>
122+
</Reference>
123+
</ItemGroup>
124+
<ItemGroup>
125+
<Compile Include="App_Start\BundleConfig.cs" />
126+
<Compile Include="App_Start\FilterConfig.cs" />
127+
<Compile Include="App_Start\RouteConfig.cs" />
128+
<Compile Include="App_Start\WebApiConfig.cs" />
129+
<Compile Include="Controllers\HomeController.cs" />
130+
<Compile Include="Global.asax.cs">
131+
<DependentUpon>Global.asax</DependentUpon>
132+
</Compile>
133+
<Compile Include="Properties\AssemblyInfo.cs" />
134+
</ItemGroup>
135+
<ItemGroup>
136+
<Content Include="Global.asax" />
137+
<Content Include="Web.config" />
138+
<Content Include="Web.Debug.config">
139+
<DependentUpon>Web.config</DependentUpon>
140+
</Content>
141+
<Content Include="Web.Release.config">
142+
<DependentUpon>Web.config</DependentUpon>
143+
</Content>
144+
<Content Include="Views\Web.config" />
145+
<Content Include="Views\_ViewStart.cshtml" />
146+
<Content Include="Views\Shared\Error.cshtml" />
147+
<Content Include="Views\Shared\_Layout.cshtml" />
148+
<Content Include="Views\Home\Index.cshtml" />
149+
</ItemGroup>
150+
<ItemGroup>
151+
<ProjectReference Include="..\ObjectDumper\ObjectDumper.csproj">
152+
<Project>{5B173510-ABEA-46EC-BAA4-5E85890362F2}</Project>
153+
<Name>ObjectDumper</Name>
154+
</ProjectReference>
155+
</ItemGroup>
156+
<ItemGroup>
157+
<Content Include="packages.config" />
158+
</ItemGroup>
159+
<PropertyGroup>
160+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
161+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
162+
</PropertyGroup>
163+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
164+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
165+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
166+
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
167+
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" />
168+
</Target>
169+
<ProjectExtensions>
170+
<VisualStudio>
171+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
172+
<WebProjectProperties>
173+
<UseIIS>True</UseIIS>
174+
<AutoAssignPort>True</AutoAssignPort>
175+
<DevelopmentServerPort>0</DevelopmentServerPort>
176+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
177+
<IISUrl>http://localhost:49448/</IISUrl>
178+
<NTLMAuthentication>False</NTLMAuthentication>
179+
<UseCustomServer>False</UseCustomServer>
180+
<CustomServerUrl>
181+
</CustomServerUrl>
182+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
183+
</WebProjectProperties>
184+
</FlavorProperties>
185+
</VisualStudio>
186+
</ProjectExtensions>
187+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
188+
Other similar extension points exist, see Microsoft.Common.targets.
189+
<Target Name="BeforeBuild">
190+
</Target>
191+
<Target Name="AfterBuild">
192+
</Target> -->
193+
</Project>

0 commit comments

Comments
 (0)