Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4,232 changed files
with
267,215 additions
and
19 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/ComplexTypeAjaxService.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "service", "service\service.csproj", "{D067DEE6-D9F3-4169-981E-02732E8ABA72}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{D067DEE6-D9F3-4169-981E-02732E8ABA72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D067DEE6-D9F3-4169-981E-02732E8ABA72}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D067DEE6-D9F3-4169-981E-02732E8ABA72}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D067DEE6-D9F3-4169-981E-02732E8ABA72}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
75 changes: 75 additions & 0 deletions
75
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/ComplexTypeClientPage.aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Complex Type AJAX Service Client Page</title> | ||
|
||
<script type="text/javascript"> | ||
// <![CDATA[ | ||
// This function creates an asynchronous call to the service | ||
function makeCall(){ | ||
var n1 = document.getElementById("num1").value; | ||
var n2 = document.getElementById("num2").value; | ||
// If user filled out these fields, call the service | ||
if(n1 && n2){ | ||
// Instantiate a service proxy | ||
var proxy = new ComplexTypeAjaxService.ICalculator(); | ||
// Call DoMath operation on proxy | ||
proxy.DoMath(parseFloat(n1), parseFloat(n2), onSuccess, onFail, null); | ||
} | ||
} | ||
// This function is called when the result from the service call is received | ||
function onSuccess(mathResult){ | ||
document.getElementById("sum").value = mathResult.sum; | ||
document.getElementById("difference").value = mathResult.difference; | ||
document.getElementById("product").value = mathResult.product; | ||
document.getElementById("quotient").value = mathResult.quotient; | ||
} | ||
// This function is called if the service call fails | ||
function onFail(){ | ||
document.getElementById("sum").value = "Error"; | ||
document.getElementById("difference").value = "Error"; | ||
document.getElementById("product").value = "Error"; | ||
document.getElementById("quotient").value = "Error"; | ||
} | ||
// ]]> | ||
</script> | ||
|
||
</head> | ||
<body> | ||
<h1> | ||
Complex Type AJAX Service Client Page</h1> | ||
<p> | ||
First Number: | ||
<input type="text" id="num1" /></p> | ||
<p> | ||
Second Number: | ||
<input type="text" id="num2" /></p> | ||
<input id="btn" type="button" onclick="return makeCall();" value="Perform calculation" /> | ||
<p> | ||
Sum: | ||
<input type="text" id="sum" /></p> | ||
<p> | ||
Difference: | ||
<input type="text" id="difference" /></p> | ||
<p> | ||
Product: | ||
<input type="text" id="product" /></p> | ||
<p> | ||
Quotient: | ||
<input type="text" id="quotient" /></p> | ||
<form id="mathForm" action="" runat="server"> | ||
<asp:ScriptManager ID="ScriptManager" runat="server"> | ||
<Services> | ||
<asp:ServiceReference Path="service.svc" /> | ||
</Services> | ||
</asp:ScriptManager> | ||
</form> | ||
</body> | ||
</html> |
32 changes: 32 additions & 0 deletions
32
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//---------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//---------------------------------------------------------------- | ||
|
||
using System; | ||
using System.Reflection; | ||
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: ComVisible(false)] | ||
[assembly: CLSCompliant(true)] | ||
[assembly: AssemblyTitle("ComplexTypeAjaxService")] | ||
[assembly: AssemblyDescription("ComplexTypeAjaxService")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("Microsoft Corporation")] | ||
[assembly: AssemblyProduct("Windows Communication Foundation and Windows Workflow Foundation SDK")] | ||
[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Revision and Build Numbers | ||
// by using the '*' as shown below: | ||
[assembly: AssemblyVersion("1.0.*")] |
62 changes: 62 additions & 0 deletions
62
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/Properties/Resources.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
//---------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//---------------------------------------------------------------- | ||
|
||
//------------------------------------------------------------------------------ | ||
// <autogenerated> | ||
// This code was generated by a tool. | ||
// Runtime Version:2.0.40903.19 | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </autogenerated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Properties { | ||
|
||
|
||
/// <summary> | ||
/// A strongly-typed resource class, for looking up localized strings, etc. | ||
/// </summary> | ||
// This class was auto-generated by the Strongly Typed Resource Builder | ||
// class via a tool like ResGen or Visual Studio.NET. | ||
// To add or remove a member, edit your .ResX file then rerun ResGen | ||
// with the /str option, or rebuild your VS project. | ||
class Resources { | ||
|
||
private static System.Resources.ResourceManager _resMgr; | ||
|
||
private static System.Globalization.CultureInfo _resCulture; | ||
|
||
/*FamANDAssem*/ internal Resources() { | ||
} | ||
|
||
/// <summary> | ||
/// Returns the cached ResourceManager instance used by this class. | ||
/// </summary> | ||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | ||
public static System.Resources.ResourceManager ResourceManager { | ||
get { | ||
if ((_resMgr == null)) { | ||
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Properties.Resources", typeof(Resources).Assembly); | ||
_resMgr = temp; | ||
} | ||
return _resMgr; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Overrides the current thread's CurrentUICulture property for all | ||
/// resource lookups using this strongly typed resource class. | ||
/// </summary> | ||
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] | ||
public static System.Globalization.CultureInfo Culture { | ||
get { | ||
return _resCulture; | ||
} | ||
set { | ||
_resCulture = value; | ||
} | ||
} | ||
} | ||
} |
117 changes: 117 additions & 0 deletions
117
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/Properties/Resources.resx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<root> | ||
<!-- | ||
Microsoft ResX Schema | ||
Version 2.0 | ||
The primary goals of this format is to allow a simple XML format | ||
that is mostly human readable. The generation and parsing of the | ||
various data types are done through the TypeConverter classes | ||
associated with the data types. | ||
Example: | ||
... ado.net/XML headers & schema ... | ||
<resheader name="resmimetype">text/microsoft-resx</resheader> | ||
<resheader name="version">2.0</resheader> | ||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
<value>[base64 mime encoded serialized .NET Framework object]</value> | ||
</data> | ||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
<comment>This is a comment</comment> | ||
</data> | ||
There are any number of "resheader" rows that contain simple | ||
name/value pairs. | ||
Each data row contains a name, and value. The row also contains a | ||
type or mimetype. Type corresponds to a .NET class that support | ||
text/value conversion through the TypeConverter architecture. | ||
Classes that don't support this are serialized and stored with the | ||
mimetype set. | ||
The mimetype is used for serialized objects, and tells the | ||
ResXResourceReader how to depersist the object. This is currently not | ||
extensible. For a given mimetype the value must be set accordingly: | ||
Note - application/x-microsoft.net.object.binary.base64 is the format | ||
that the ResXResourceWriter will generate, however the reader can | ||
read any of the formats listed below. | ||
mimetype: application/x-microsoft.net.object.binary.base64 | ||
value : The object must be serialized with | ||
: System.Serialization.Formatters.Binary.BinaryFormatter | ||
: and then encoded with base64 encoding. | ||
mimetype: application/x-microsoft.net.object.soap.base64 | ||
value : The object must be serialized with | ||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
: and then encoded with base64 encoding. | ||
mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
value : The object must be serialized into a byte array | ||
: using a System.ComponentModel.TypeConverter | ||
: and then encoded with base64 encoding. | ||
--> | ||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
<xsd:element name="root" msdata:IsDataSet="true"> | ||
<xsd:complexType> | ||
<xsd:choice maxOccurs="unbounded"> | ||
<xsd:element name="metadata"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" /> | ||
<xsd:attribute name="type" type="xsd:string" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="assembly"> | ||
<xsd:complexType> | ||
<xsd:attribute name="alias" type="xsd:string" /> | ||
<xsd:attribute name="name" type="xsd:string" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="data"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | ||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="resheader"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
</xsd:sequence> | ||
<xsd:attribute name="name" type="xsd:string" use="required" /> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:choice> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> | ||
<resheader name="resmimetype"> | ||
<value>text/microsoft-resx</value> | ||
</resheader> | ||
<resheader name="version"> | ||
<value>2.0</value> | ||
</resheader> | ||
<resheader name="reader"> | ||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
<resheader name="writer"> | ||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
</resheader> | ||
</root> |
42 changes: 42 additions & 0 deletions
42
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/Properties/Settings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//---------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
//---------------------------------------------------------------- | ||
|
||
//------------------------------------------------------------------------------ | ||
// <autogenerated> | ||
// This code was generated by a tool. | ||
// Runtime Version:2.0.40903.19 | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </autogenerated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace Properties { | ||
|
||
|
||
sealed partial class Settings : System.Configuration.ApplicationSettingsBase { | ||
|
||
private static Settings m_Value; | ||
|
||
private static object m_SyncObject = new object(); | ||
|
||
[System.Diagnostics.DebuggerNonUserCode()] | ||
public static Settings Value { | ||
get { | ||
if ((Settings.m_Value == null)) { | ||
System.Threading.Monitor.Enter(Settings.m_SyncObject); | ||
if ((Settings.m_Value == null)) { | ||
try { | ||
Settings.m_Value = new Settings(); | ||
} | ||
finally { | ||
System.Threading.Monitor.Exit(Settings.m_SyncObject); | ||
} | ||
} | ||
} | ||
return Settings.m_Value; | ||
} | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
framework/wcf/Basic/Ajax/ComplexTypeAjaxService/CS/service/Properties/Settings.settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version='1.0' encoding='iso-8859-1'?> | ||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)" GeneratedClassNamespace="Properties" GeneratedClassName="Settings"> | ||
<Profiles> | ||
<Profile Name="(Default)" /> | ||
</Profiles> | ||
<Settings /> | ||
</SettingsFile> |
Oops, something went wrong.