Skip to content

Commit 87b2b8a

Browse files
committed
initial Code
1 parent 2ea0149 commit 87b2b8a

File tree

199 files changed

+178745
-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.

199 files changed

+178745
-0
lines changed

TaskResolution.sln

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28010.2026
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TaskResolution", "TaskResolution\TaskResolution.csproj", "{EB795606-3DDF-4428-8FEB-DA442E1FEEB9}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{EB795606-3DDF-4428-8FEB-DA442E1FEEB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{EB795606-3DDF-4428-8FEB-DA442E1FEEB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{EB795606-3DDF-4428-8FEB-DA442E1FEEB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{EB795606-3DDF-4428-8FEB-DA442E1FEEB9}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {7B848588-AC45-4A35-92A9-6A63EEF73CF6}
24+
EndGlobalSection
25+
EndGlobal
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Web;
2+
using System.Web.Optimization;
3+
4+
namespace TaskResolution
5+
{
6+
public class BundleConfig
7+
{
8+
// For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
9+
public static void RegisterBundles(BundleCollection bundles)
10+
{
11+
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12+
"~/Scripts/jquery-{version}.js"));
13+
14+
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15+
"~/Scripts/jquery.validate*"));
16+
17+
// Use the development version of Modernizr to develop with and learn from. Then, when you're
18+
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
19+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20+
"~/Scripts/modernizr-*"));
21+
22+
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23+
"~/Scripts/bootstrap.js"));
24+
25+
bundles.Add(new StyleBundle("~/Content/css").Include(
26+
"~/Content/bootstrap.css",
27+
"~/Content/site.css"));
28+
29+
bundles.Add(new ScriptBundle("~/bundles/angular/script").Include(
30+
"~/Scripts/angular.js",
31+
"~/Scripts/Angular/Student.js",
32+
"~/Scripts/Angular/HomeController.js"));
33+
}
34+
}
35+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Web;
2+
using System.Web.Mvc;
3+
4+
namespace TaskResolution
5+
{
6+
public class FilterConfig
7+
{
8+
public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9+
{
10+
filters.Add(new HandleErrorAttribute());
11+
}
12+
}
13+
}
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Mvc;
6+
using System.Web.Routing;
7+
8+
namespace TaskResolution
9+
{
10+
public class RouteConfig
11+
{
12+
public static void RegisterRoutes(RouteCollection routes)
13+
{
14+
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15+
16+
routes.MapRoute(
17+
name: "Default",
18+
url: "{controller}/{action}/{id}",
19+
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20+
);
21+
}
22+
}
23+
}
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web.Http;
5+
6+
namespace TaskResolution
7+
{
8+
public static class WebApiConfig
9+
{
10+
public static void Register(HttpConfiguration config)
11+
{
12+
config.MapHttpAttributeRoutes();
13+
14+
config.Routes.MapHttpRoute(
15+
name: "DefaultApi",
16+
routeTemplate: "api/{controller}/{id}",
17+
defaults: new { id = RouteParameter.Optional }
18+
);
19+
20+
var formatter = GlobalConfiguration.Configuration.Formatters.JsonFormatter;
21+
formatter.SerializerSettings.ContractResolver =
22+
new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver();
23+
}
24+
}
25+
}
+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
3+
<TelemetryInitializers>
4+
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.HttpDependenciesParsingTelemetryInitializer, Microsoft.AI.DependencyCollector"/>
5+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
6+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.AzureWebAppRoleEnvironmentTelemetryInitializer, Microsoft.AI.WindowsServer"/>
7+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.BuildInfoConfigComponentVersionTelemetryInitializer, Microsoft.AI.WindowsServer"/>
8+
<Add Type="Microsoft.ApplicationInsights.Web.WebTestTelemetryInitializer, Microsoft.AI.Web"/>
9+
<Add Type="Microsoft.ApplicationInsights.Web.SyntheticUserAgentTelemetryInitializer, Microsoft.AI.Web">
10+
<!-- Extended list of bots:
11+
search|spider|crawl|Bot|Monitor|BrowserMob|BingPreview|PagePeeker|WebThumb|URL2PNG|ZooShot|GomezA|Google SketchUp|Read Later|KTXN|KHTE|Keynote|Pingdom|AlwaysOn|zao|borg|oegp|silk|Xenu|zeal|NING|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|Java|JNLP|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|vortex|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|voyager|archiver|Icarus6j|mogimogi|Netvibes|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|wsr-agent|http client|Python-urllib|AppEngine-Google|semanticdiscovery|facebookexternalhit|web/snippet|Google-HTTP-Java-Client-->
12+
<Filters>search|spider|crawl|Bot|Monitor|AlwaysOn</Filters>
13+
</Add>
14+
<Add Type="Microsoft.ApplicationInsights.Web.ClientIpHeaderTelemetryInitializer, Microsoft.AI.Web"/>
15+
<Add Type="Microsoft.ApplicationInsights.Web.OperationNameTelemetryInitializer, Microsoft.AI.Web"/>
16+
<Add Type="Microsoft.ApplicationInsights.Web.OperationCorrelationTelemetryInitializer, Microsoft.AI.Web"/>
17+
<Add Type="Microsoft.ApplicationInsights.Web.UserTelemetryInitializer, Microsoft.AI.Web"/>
18+
<Add Type="Microsoft.ApplicationInsights.Web.AuthenticatedUserIdTelemetryInitializer, Microsoft.AI.Web"/>
19+
<Add Type="Microsoft.ApplicationInsights.Web.AccountIdTelemetryInitializer, Microsoft.AI.Web"/>
20+
<Add Type="Microsoft.ApplicationInsights.Web.SessionTelemetryInitializer, Microsoft.AI.Web"/>
21+
</TelemetryInitializers>
22+
<TelemetryModules>
23+
<Add Type="Microsoft.ApplicationInsights.DependencyCollector.DependencyTrackingTelemetryModule, Microsoft.AI.DependencyCollector">
24+
<ExcludeComponentCorrelationHttpHeadersOnDomains>
25+
<!--
26+
Requests to the following hostnames will not be modified by adding correlation headers.
27+
Add entries here to exclude additional hostnames.
28+
NOTE: this configuration will be lost upon NuGet upgrade.
29+
-->
30+
<Add>core.windows.net</Add>
31+
<Add>core.chinacloudapi.cn</Add>
32+
<Add>core.cloudapi.de</Add>
33+
<Add>core.usgovcloudapi.net</Add>
34+
<Add>localhost</Add>
35+
<Add>127.0.0.1</Add>
36+
</ExcludeComponentCorrelationHttpHeadersOnDomains>
37+
<IncludeDiagnosticSourceActivities>
38+
<Add>Microsoft.Azure.EventHubs</Add>
39+
<Add>Microsoft.Azure.ServiceBus</Add>
40+
</IncludeDiagnosticSourceActivities>
41+
</Add>
42+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.AI.PerfCounterCollector">
43+
<!--
44+
Use the following syntax here to collect additional performance counters:
45+
46+
<Counters>
47+
<Add PerformanceCounter="\Process(??APP_WIN32_PROC??)\Handle Count" ReportAs="Process handle count" />
48+
...
49+
</Counters>
50+
51+
PerformanceCounter must be either \CategoryName(InstanceName)\CounterName or \CategoryName\CounterName
52+
53+
NOTE: performance counters configuration will be lost upon NuGet upgrade.
54+
55+
The following placeholders are supported as InstanceName:
56+
??APP_WIN32_PROC?? - instance name of the application process for Win32 counters.
57+
??APP_W3SVC_PROC?? - instance name of the application IIS worker process for IIS/ASP.NET counters.
58+
??APP_CLR_PROC?? - instance name of the application CLR process for .NET counters.
59+
-->
60+
</Add>
61+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"/>
62+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.DeveloperModeWithDebuggerAttachedTelemetryModule, Microsoft.AI.WindowsServer"/>
63+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnhandledExceptionTelemetryModule, Microsoft.AI.WindowsServer"/>
64+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule, Microsoft.AI.WindowsServer">
65+
<!--</Add>
66+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.FirstChanceExceptionStatisticsTelemetryModule, Microsoft.AI.WindowsServer">-->
67+
</Add>
68+
<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web">
69+
<Handlers>
70+
<!--
71+
Add entries here to filter out additional handlers:
72+
73+
NOTE: handler configuration will be lost upon NuGet upgrade.
74+
-->
75+
<Add>Microsoft.VisualStudio.Web.PageInspector.Runtime.Tracing.RequestDataHttpHandler</Add>
76+
<Add>System.Web.StaticFileHandler</Add>
77+
<Add>System.Web.Handlers.AssemblyResourceLoader</Add>
78+
<Add>System.Web.Optimization.BundleHandler</Add>
79+
<Add>System.Web.Script.Services.ScriptHandlerFactory</Add>
80+
<Add>System.Web.Handlers.TraceHandler</Add>
81+
<Add>System.Web.Services.Discovery.DiscoveryRequestHandler</Add>
82+
<Add>System.Web.HttpDebugHandler</Add>
83+
</Handlers>
84+
</Add>
85+
<Add Type="Microsoft.ApplicationInsights.Web.ExceptionTrackingTelemetryModule, Microsoft.AI.Web"/>
86+
<Add Type="Microsoft.ApplicationInsights.Web.AspNetDiagnosticTelemetryModule, Microsoft.AI.Web"/>
87+
</TelemetryModules>
88+
<TelemetryProcessors>
89+
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryProcessor, Microsoft.AI.PerfCounterCollector"/>
90+
<Add Type="Microsoft.ApplicationInsights.Extensibility.AutocollectedMetricsExtractor, Microsoft.ApplicationInsights"/>
91+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
92+
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
93+
<ExcludedTypes>Event</ExcludedTypes>
94+
</Add>
95+
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
96+
<MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
97+
<IncludedTypes>Event</IncludedTypes>
98+
</Add>
99+
</TelemetryProcessors>
100+
<TelemetryChannel Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.ServerTelemetryChannel, Microsoft.AI.ServerTelemetryChannel"/>
101+
<!--
102+
Learn more about Application Insights configuration with ApplicationInsights.config here:
103+
http://go.microsoft.com/fwlink/?LinkID=513840
104+
105+
Note: If not present, please add <InstrumentationKey>Your Key</InstrumentationKey> to the top of this file.
106+
--></ApplicationInsights>

TaskResolution/Content/Site.css

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
body {
2+
padding-top: 50px;
3+
padding-bottom: 20px;
4+
}
5+
6+
/* Set padding to keep content from hitting the edges */
7+
.body-content {
8+
padding-left: 15px;
9+
padding-right: 15px;
10+
}
11+
12+
/* Override the default bootstrap behavior where horizontal description lists
13+
will truncate terms that are too long to fit in the left column
14+
*/
15+
.dl-horizontal dt {
16+
white-space: normal;
17+
}
18+
19+
/* Set width on the form input elements since they're 100% wide by default */
20+
input,
21+
select,
22+
textarea {
23+
max-width: 280px;
24+
}

0 commit comments

Comments
 (0)