Skip to content

Commit c88ef5e

Browse files
committed
Add PclTest.SL5 test app
1 parent 4f0b06f commit c88ef5e

19 files changed

Lines changed: 834 additions & 0 deletions

src/ServiceStack.SL5.sln

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack.Client.SL5", "
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack.Text.SL5", "..\..\ServiceStack.Text\src\ServiceStack.Text\ServiceStack.Text.SL5.csproj", "{579B3FDB-CDAD-44E1-8417-885C38E49A0E}"
99
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PclTest.SL5", "..\tests\PclTest.SL5\PclTest.SL5.csproj", "{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PclTest.SL5.Web", "..\tests\PclTest.SL5.Web\PclTest.SL5.Web.csproj", "{600DE33E-6162-4851-8778-AF1501225F81}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PclTest.ServiceModel.SL5", "..\tests\PclTest.ServiceModel.SL5\PclTest.ServiceModel.SL5.csproj", "{7582E93E-5525-4965-ADDB-FC980B12E876}"
15+
EndProject
1016
Global
1117
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1218
Debug|Any CPU = Debug|Any CPU
@@ -25,6 +31,18 @@ Global
2531
{579B3FDB-CDAD-44E1-8417-885C38E49A0E}.Debug|Any CPU.Build.0 = Debug|Any CPU
2632
{579B3FDB-CDAD-44E1-8417-885C38E49A0E}.Release|Any CPU.ActiveCfg = Release|Any CPU
2733
{579B3FDB-CDAD-44E1-8417-885C38E49A0E}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
35+
{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}.Debug|Any CPU.Build.0 = Debug|Any CPU
36+
{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}.Release|Any CPU.ActiveCfg = Release|Any CPU
37+
{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}.Release|Any CPU.Build.0 = Release|Any CPU
38+
{600DE33E-6162-4851-8778-AF1501225F81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{600DE33E-6162-4851-8778-AF1501225F81}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{600DE33E-6162-4851-8778-AF1501225F81}.Release|Any CPU.ActiveCfg = Release|Any CPU
41+
{600DE33E-6162-4851-8778-AF1501225F81}.Release|Any CPU.Build.0 = Release|Any CPU
42+
{7582E93E-5525-4965-ADDB-FC980B12E876}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
43+
{7582E93E-5525-4965-ADDB-FC980B12E876}.Debug|Any CPU.Build.0 = Debug|Any CPU
44+
{7582E93E-5525-4965-ADDB-FC980B12E876}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{7582E93E-5525-4965-ADDB-FC980B12E876}.Release|Any CPU.Build.0 = Release|Any CPU
2846
EndGlobalSection
2947
GlobalSection(SolutionProperties) = preSolution
3048
HideSolutionNode = FALSE
446 KB
Binary file not shown.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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>{600DE33E-6162-4851-8778-AF1501225F81}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>PclTest.SL5.Web</RootNamespace>
15+
<AssemblyName>PclTest.SL5.Web</AssemblyName>
16+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
<UseIISExpress>true</UseIISExpress>
18+
<IISExpressSSLPort />
19+
<IISExpressAnonymousAuthentication />
20+
<IISExpressWindowsAuthentication />
21+
<IISExpressUseClassicPipelineMode />
22+
<SilverlightApplicationList>{3B489F59-AAFA-4B42-9CFD-9147D4BEDA40}|..\PclTest.SL5\PclTest.SL5.csproj|ClientBin|False</SilverlightApplicationList>
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.Web.DynamicData" />
44+
<Reference Include="System.Web.Entity" />
45+
<Reference Include="System.Web.ApplicationServices" />
46+
<Reference Include="System.ComponentModel.DataAnnotations" />
47+
<Reference Include="System" />
48+
<Reference Include="System.Data" />
49+
<Reference Include="System.Core" />
50+
<Reference Include="System.Data.DataSetExtensions" />
51+
<Reference Include="System.Web.Extensions" />
52+
<Reference Include="System.Xml.Linq" />
53+
<Reference Include="System.Drawing" />
54+
<Reference Include="System.Web" />
55+
<Reference Include="System.Xml" />
56+
<Reference Include="System.Configuration" />
57+
<Reference Include="System.Web.Services" />
58+
<Reference Include="System.EnterpriseServices" />
59+
</ItemGroup>
60+
<ItemGroup>
61+
<Content Include="ClientBin\PclTest.SL5.xap" />
62+
<Content Include="PclTest.SL5TestPage.aspx" />
63+
<Content Include="PclTest.SL5TestPage.html" />
64+
<Content Include="Silverlight.js" />
65+
<Content Include="Web.config" />
66+
</ItemGroup>
67+
<ItemGroup>
68+
<Compile Include="Properties\AssemblyInfo.cs" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<None Include="Web.Debug.config">
72+
<DependentUpon>Web.config</DependentUpon>
73+
</None>
74+
<None Include="Web.Release.config">
75+
<DependentUpon>Web.config</DependentUpon>
76+
</None>
77+
</ItemGroup>
78+
<ItemGroup />
79+
<PropertyGroup>
80+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
81+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
82+
</PropertyGroup>
83+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
84+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
85+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
86+
<ProjectExtensions>
87+
<VisualStudio>
88+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
89+
<WebProjectProperties>
90+
<UseIIS>True</UseIIS>
91+
<AutoAssignPort>True</AutoAssignPort>
92+
<DevelopmentServerPort>0</DevelopmentServerPort>
93+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
94+
<IISUrl>http://localhost:51967/</IISUrl>
95+
<NTLMAuthentication>False</NTLMAuthentication>
96+
<UseCustomServer>False</UseCustomServer>
97+
<CustomServerUrl>
98+
</CustomServerUrl>
99+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
100+
</WebProjectProperties>
101+
</FlavorProperties>
102+
</VisualStudio>
103+
</ProjectExtensions>
104+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
105+
Other similar extension points exist, see Microsoft.Common.targets.
106+
<Target Name="BeforeBuild">
107+
</Target>
108+
<Target Name="AfterBuild">
109+
</Target>
110+
-->
111+
</Project>
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<%@ Page Language="C#" AutoEventWireup="true" %>
2+
3+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4+
<html xmlns="http://www.w3.org/1999/xhtml" >
5+
<head runat="server">
6+
<title>PclTest.SL5</title>
7+
<style type="text/css">
8+
html, body {
9+
height: 100%;
10+
overflow: auto;
11+
}
12+
body {
13+
padding: 0;
14+
margin: 0;
15+
}
16+
#silverlightControlHost {
17+
height: 100%;
18+
text-align:center;
19+
}
20+
</style>
21+
<script type="text/javascript" src="Silverlight.js"></script>
22+
<script type="text/javascript">
23+
function onSilverlightError(sender, args) {
24+
var appSource = "";
25+
if (sender != null && sender != 0) {
26+
appSource = sender.getHost().Source;
27+
}
28+
29+
var errorType = args.ErrorType;
30+
var iErrorCode = args.ErrorCode;
31+
32+
if (errorType == "ImageError" || errorType == "MediaError") {
33+
return;
34+
}
35+
36+
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
37+
38+
errMsg += "Code: "+ iErrorCode + " \n";
39+
errMsg += "Category: " + errorType + " \n";
40+
errMsg += "Message: " + args.ErrorMessage + " \n";
41+
42+
if (errorType == "ParserError") {
43+
errMsg += "File: " + args.xamlFile + " \n";
44+
errMsg += "Line: " + args.lineNumber + " \n";
45+
errMsg += "Position: " + args.charPosition + " \n";
46+
}
47+
else if (errorType == "RuntimeError") {
48+
if (args.lineNumber != 0) {
49+
errMsg += "Line: " + args.lineNumber + " \n";
50+
errMsg += "Position: " + args.charPosition + " \n";
51+
}
52+
errMsg += "MethodName: " + args.methodName + " \n";
53+
}
54+
55+
throw new Error(errMsg);
56+
}
57+
</script>
58+
</head>
59+
<body>
60+
<form id="form1" runat="server" style="height:100%">
61+
<div id="silverlightControlHost">
62+
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
63+
<param name="source" value="ClientBin/PclTest.SL5.xap"/>
64+
<param name="onError" value="onSilverlightError" />
65+
<param name="background" value="white" />
66+
<param name="minRuntimeVersion" value="5.0.61118.0" />
67+
<param name="autoUpgrade" value="true" />
68+
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
69+
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
70+
</a>
71+
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
72+
</form>
73+
</body>
74+
</html>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" >
3+
4+
<head>
5+
<title>PclTest.SL5</title>
6+
<style type="text/css">
7+
html, body {
8+
height: 100%;
9+
overflow: auto;
10+
}
11+
body {
12+
padding: 0;
13+
margin: 0;
14+
}
15+
#silverlightControlHost {
16+
height: 100%;
17+
text-align:center;
18+
}
19+
</style>
20+
<script type="text/javascript" src="Silverlight.js"></script>
21+
<script type="text/javascript">
22+
function onSilverlightError(sender, args) {
23+
var appSource = "";
24+
if (sender != null && sender != 0) {
25+
appSource = sender.getHost().Source;
26+
}
27+
28+
var errorType = args.ErrorType;
29+
var iErrorCode = args.ErrorCode;
30+
31+
if (errorType == "ImageError" || errorType == "MediaError") {
32+
return;
33+
}
34+
35+
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
36+
37+
errMsg += "Code: "+ iErrorCode + " \n";
38+
errMsg += "Category: " + errorType + " \n";
39+
errMsg += "Message: " + args.ErrorMessage + " \n";
40+
41+
if (errorType == "ParserError") {
42+
errMsg += "File: " + args.xamlFile + " \n";
43+
errMsg += "Line: " + args.lineNumber + " \n";
44+
errMsg += "Position: " + args.charPosition + " \n";
45+
}
46+
else if (errorType == "RuntimeError") {
47+
if (args.lineNumber != 0) {
48+
errMsg += "Line: " + args.lineNumber + " \n";
49+
errMsg += "Position: " + args.charPosition + " \n";
50+
}
51+
errMsg += "MethodName: " + args.methodName + " \n";
52+
}
53+
54+
throw new Error(errMsg);
55+
}
56+
</script>
57+
</head>
58+
<body>
59+
<form id="form1" runat="server" style="height:100%">
60+
<div id="silverlightControlHost">
61+
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
62+
<param name="source" value="ClientBin/PclTest.SL5.xap"/>
63+
<param name="onError" value="onSilverlightError" />
64+
<param name="background" value="white" />
65+
<param name="minRuntimeVersion" value="5.0.61118.0" />
66+
<param name="autoUpgrade" value="true" />
67+
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none">
68+
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
69+
</a>
70+
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
71+
</form>
72+
</body>
73+
</html>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("PclTest.SL5.Web")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("PclTest.SL5.Web")]
13+
[assembly: AssemblyCopyright("Copyright © 2014")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("84e1fed0-ab76-4db7-9fc0-b3eb8b1f6568")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Revision and Build Numbers
33+
// by using the '*' as shown below:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)