Browse Source

Initial project layout and interfaces.

Bart De Smet 8 years ago
parent
commit
5cd1100109

+ 59 - 0
AsyncRx.NET/AsyncRx.NET.sln

@@ -0,0 +1,59 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.26730.3
+MinimumVisualStudioVersion = 15.0.26124.0
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "lib", "lib", "{1D64A210-F73A-4F91-9598-4C51865D105D}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.Reactive.Async", "System.Reactive.Async\System.Reactive.Async.csproj", "{AEDF2B02-F301-4AC6-9DBC-2744746D816A}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dev", "dev", "{7D5B343C-B34D-481C-8774-B6BB14BC1B22}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playground", "Playground\Playground.csproj", "{3B83795B-9870-43FA-82AF-95A44CF0194F}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Debug|x64 = Debug|x64
+		Debug|x86 = Debug|x86
+		Release|Any CPU = Release|Any CPU
+		Release|x64 = Release|x64
+		Release|x86 = Release|x86
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|x64.ActiveCfg = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|x64.Build.0 = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Debug|x86.Build.0 = Debug|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|Any CPU.Build.0 = Release|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|x64.ActiveCfg = Release|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|x64.Build.0 = Release|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|x86.ActiveCfg = Release|Any CPU
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A}.Release|x86.Build.0 = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|x64.ActiveCfg = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|x64.Build.0 = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Debug|x86.Build.0 = Debug|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|Any CPU.Build.0 = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|x64.ActiveCfg = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|x64.Build.0 = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|x86.ActiveCfg = Release|Any CPU
+		{3B83795B-9870-43FA-82AF-95A44CF0194F}.Release|x86.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(NestedProjects) = preSolution
+		{AEDF2B02-F301-4AC6-9DBC-2744746D816A} = {1D64A210-F73A-4F91-9598-4C51865D105D}
+		{3B83795B-9870-43FA-82AF-95A44CF0194F} = {7D5B343C-B34D-481C-8774-B6BB14BC1B22}
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {836C3B9A-682A-4E6F-8053-92BFC9D29D89}
+	EndGlobalSection
+EndGlobal

+ 12 - 0
AsyncRx.NET/Playground/Playground.csproj

@@ -0,0 +1,12 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <OutputType>Exe</OutputType>
+    <TargetFramework>netcoreapp2.0</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="..\System.Reactive.Async\System.Reactive.Async.csproj" />
+  </ItemGroup>
+
+</Project>

+ 12 - 0
AsyncRx.NET/Playground/Program.cs

@@ -0,0 +1,12 @@
+using System;
+
+namespace Playground
+{
+    class Program
+    {
+        static void Main(string[] args)
+        {
+            Console.WriteLine("Hello World!");
+        }
+    }
+}

+ 11 - 0
AsyncRx.NET/System.Reactive.Async/System.Reactive.Async.csproj

@@ -0,0 +1,11 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <PropertyGroup>
+    <TargetFramework>netstandard2.0</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <Folder Include="System\Reactive\Linq\" />
+  </ItemGroup>
+
+</Project>

+ 13 - 0
AsyncRx.NET/System.Reactive.Async/System/IAsyncDisposable.cs

@@ -0,0 +1,13 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information. 
+
+using System.Threading.Tasks;
+
+namespace System
+{
+    public interface IAsyncDisposable
+    {
+        Task DisposeAsync();
+    }
+}

+ 13 - 0
AsyncRx.NET/System.Reactive.Async/System/IAsyncObservable.cs

@@ -0,0 +1,13 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information. 
+
+using System.Threading.Tasks;
+
+namespace System
+{
+    public interface IAsyncObservable<out T>
+    {
+        Task<IAsyncDisposable> SubscribeAsync(IAsyncObserver<T> observer);
+    }
+}

+ 15 - 0
AsyncRx.NET/System.Reactive.Async/System/IAsyncObserver.cs

@@ -0,0 +1,15 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the Apache 2.0 License.
+// See the LICENSE file in the project root for more information. 
+
+using System.Threading.Tasks;
+
+namespace System
+{
+    public interface IAsyncObserver<in T>
+    {
+        Task OnNextAsync(T value);
+        Task OnErrorAsync(Exception error);
+        Task OnCompletedAsync();
+    }
+}