Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/rx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Rx/NET/Samples/HOL/CS/Excercise2')
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Start/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Start/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step03/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step03/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step04/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step04/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step05/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step05/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step06/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step06/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step07/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step07/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step08/Program.cs25
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step08/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step09/Program.cs24
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step09/Properties/AssemblyInfo.cs36
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.csproj58
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.sln20
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step10/Program.cs29
-rw-r--r--Rx/NET/Samples/HOL/CS/Excercise2/Step10/Properties/AssemblyInfo.cs36
36 files changed, 1254 insertions, 0 deletions
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.csproj
new file mode 100644
index 0000000..4f08214
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{AF344E14-373F-4DD8-A784-A33040B39FD5}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Start/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Program.cs
new file mode 100644
index 0000000..3a047f6
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = null /* We’ll explore a set of factory methods here */;
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Start/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Start/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.csproj
new file mode 100644
index 0000000..7d6fe61
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{6F62C380-C2B1-4702-8A73-9101FCAB2E38}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Program.cs
new file mode 100644
index 0000000..8229ae8
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Empty<int>();
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step03/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.csproj
new file mode 100644
index 0000000..dd2856b
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{289C6220-CB61-413F-8C14-21AEDEB94B4C}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Program.cs
new file mode 100644
index 0000000..9af5411
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Throw<int>(new Exception("Oops"));
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step04/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.csproj
new file mode 100644
index 0000000..58cb0cb
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{BC16C11F-D510-4CE9-ABA4-3E703ED48FBD}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Program.cs
new file mode 100644
index 0000000..5a6ea26
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Return(42);
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step05/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.csproj
new file mode 100644
index 0000000..f931c51
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{E4136784-3DC4-438F-9E90-E261CCE9DA6C}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Program.cs
new file mode 100644
index 0000000..5511232
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Range(5, 3);
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step06/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.csproj
new file mode 100644
index 0000000..9333a26
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{20522107-AECC-4E6D-846C-69D49406A06B}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Program.cs
new file mode 100644
index 0000000..0c3c9f2
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Generate(0, i => i < 5, i => i + 1, i => i * i);
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step07/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.csproj
new file mode 100644
index 0000000..cc403b6
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{0396B214-99A9-4F09-AAC9-ACAF2125414C}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Program.cs
new file mode 100644
index 0000000..2d5a390
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Program.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Never<int>();
+
+ IDisposable subscription = source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ subscription.Dispose();
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step08/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.csproj
new file mode 100644
index 0000000..21fe088
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{16DDA343-61A7-4D54-8482-4E4C0AFF26F5}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Program.cs
new file mode 100644
index 0000000..be0552c
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Program.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Range(0, 10);
+
+ source.ForEach(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ );
+
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step09/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.csproj b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.csproj
new file mode 100644
index 0000000..e492bd8
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.csproj
@@ -0,0 +1,58 @@
+<?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>{81113424-7F2C-4B54-A3BF-68F7130900D2}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Excercise2</RootNamespace>
+ <AssemblyName>Excercise2</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</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.Reactive, Version=1.0.10425.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <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>
+ <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> \ No newline at end of file
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.sln b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.sln
new file mode 100644
index 0000000..375d97f
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Excercise2.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excercise2", "Excercise2.csproj", "{AF344E14-373F-4DD8-A784-A33040B39FD5}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|x86 = Debug|x86
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.ActiveCfg = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Debug|x86.Build.0 = Debug|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.ActiveCfg = Release|x86
+ {AF344E14-373F-4DD8-A784-A33040B39FD5}.Release|x86.Build.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Program.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Program.cs
new file mode 100644
index 0000000..a099a9a
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Program.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Linq;
+using System.Reactive.Linq;
+
+namespace Excercise2
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ IObservable<int> source = Observable.Generate(
+ 0, i => i < 5,
+ i => i + 1,
+ i => i * i,
+ i => TimeSpan.FromSeconds(i)
+ );
+
+ using (source.Subscribe(
+ x => Console.WriteLine("OnNext: {0}", x),
+ ex => Console.WriteLine("OnError: {0}", ex.Message),
+ () => Console.WriteLine("OnCompleted")
+ ))
+ {
+ Console.WriteLine("Press ENTER to unsubscribe...");
+ Console.ReadLine();
+ }
+ }
+ }
+}
diff --git a/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Properties/AssemblyInfo.cs b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..511a1bf
--- /dev/null
+++ b/Rx/NET/Samples/HOL/CS/Excercise2/Step10/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+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("Excercise2")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("Excercise2")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("a639ddeb-d032-48b0-9b70-6108606b2bbb")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]