Skip to content

Commit

Permalink
Initial prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelie committed Aug 25, 2024
1 parent 98f7bd6 commit b60b832
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 133 deletions.
16 changes: 1 addition & 15 deletions Shmuelie.WinRTServer.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# 17
# Visual Studio Version 17
VisualStudioVersion = 17.3.32929.385
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_SolutionItems", "_SolutionItems", "{50DD472E-AD00-45C5-A2F7-4CB77CB8CD67}"
Expand All @@ -23,12 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shmuelie.WinRTServer", "src
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{E1670C4F-46C0-45BE-A351-E504DCB17A45}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shmuelie.WinRTServer.Sample.Interfaces", "tests\Shmuelie.WinRTServer.Sample.Interfaces\Shmuelie.WinRTServer.Sample.Interfaces.csproj", "{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Shmuelie.WinRTServer.Sample.Metadata", "tests\Shmuelie.WinRTServer.Sample.Metadata\Shmuelie.WinRTServer.Sample.Metadata.vcxproj", "{AEAC1534-6CA9-4A7E-9F24-E1F72D261AE4}"
ProjectSection(ProjectDependencies) = postProject
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F} = {7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shmuelie.WinRTServer.Sample.UwpClient", "tests\Shmuelie.WinRTServer.Sample.UwpClient\Shmuelie.WinRTServer.Sample.UwpClient.csproj", "{1C27B092-88C3-4631-848B-F7165F8CF5E9}"
ProjectSection(ProjectDependencies) = postProject
Expand Down Expand Up @@ -61,14 +56,6 @@ Global
{F09FEFE0-ED5E-4A17-9C54-DB6C1CD559E9}.Release|x64.Build.0 = Release|Any CPU
{F09FEFE0-ED5E-4A17-9C54-DB6C1CD559E9}.Release|x86.ActiveCfg = Release|Any CPU
{F09FEFE0-ED5E-4A17-9C54-DB6C1CD559E9}.Release|x86.Build.0 = Release|Any CPU
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Debug|x64.ActiveCfg = Debug|x64
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Debug|x64.Build.0 = Debug|x64
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Debug|x86.ActiveCfg = Debug|x86
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Debug|x86.Build.0 = Debug|x86
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Release|x64.ActiveCfg = Release|x64
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Release|x64.Build.0 = Release|x64
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Release|x86.ActiveCfg = Release|x86
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F}.Release|x86.Build.0 = Release|x86
{AEAC1534-6CA9-4A7E-9F24-E1F72D261AE4}.Debug|x64.ActiveCfg = Debug|x64
{AEAC1534-6CA9-4A7E-9F24-E1F72D261AE4}.Debug|x64.Build.0 = Debug|x64
{AEAC1534-6CA9-4A7E-9F24-E1F72D261AE4}.Debug|x86.ActiveCfg = Debug|Win32
Expand Down Expand Up @@ -139,7 +126,6 @@ Global
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{F09FEFE0-ED5E-4A17-9C54-DB6C1CD559E9} = {E1670C4F-46C0-45BE-A351-E504DCB17A45}
{7E420EEB-3D6C-49FB-9E60-AE448BAC8B1F} = {CB701FA8-9663-444D-9610-1A8CDFF30E61}
{AEAC1534-6CA9-4A7E-9F24-E1F72D261AE4} = {CB701FA8-9663-444D-9610-1A8CDFF30E61}
{1C27B092-88C3-4631-848B-F7165F8CF5E9} = {CB701FA8-9663-444D-9610-1A8CDFF30E61}
{080D9051-AF78-4B2A-B5CC-9F5BA79A0A9B} = {CB701FA8-9663-444D-9610-1A8CDFF30E61}
Expand Down
11 changes: 0 additions & 11 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/IInput.cs

This file was deleted.

28 changes: 0 additions & 28 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/IRemoteThing.cs

This file was deleted.

12 changes: 0 additions & 12 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/ITimes.cs

This file was deleted.

7 changes: 0 additions & 7 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/ListOptions.cs

This file was deleted.

8 changes: 0 additions & 8 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/ListProgress.cs

This file was deleted.

7 changes: 0 additions & 7 deletions tests/Shmuelie.WinRTServer.Sample.Interfaces/LoopProgress.cs

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
<OutDir>$(ProjectDir)bin\$(Platform)\$(Configuration)\</OutDir>
<IntDir>$(ProjectDir)obj\$(Platform)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Shmuelie.WinRTServer.Sample.Interfaces\Shmuelie.WinRTServer.Sample.Interfaces.csproj">
<Project>{7e420eeb-3d6c-49fb-9e60-ae448bac8b1f}</Project>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Midl Include="Types.idl" />
</ItemGroup>
Expand Down
61 changes: 54 additions & 7 deletions tests/Shmuelie.WinRTServer.Sample.Metadata/Types.idl
Original file line number Diff line number Diff line change
@@ -1,17 +1,64 @@
namespace Shmuelie.WinRTServer.Sample
{
runtimeclass RemoteThing : [default] Shmuelie.WinRTServer.Sample.Interfaces.IRemoteThing
struct LoopProgress
{
RemoteThing();
}
Int32 Count;
Int32 Total;
};

struct ListProgress
{
Int32 Count;
Int32 Total;
Int32 Last;
};

struct ListOptions
{
Int32 Count;
Int32 DelayTicks;
};

[uuid(2474f7c0-9db1-4f4f-b614-dc5a89050b65)]
interface IInput
{
String Name { get; set; };
String Description { get; set; };
};

runtimeclass Input : [default] Shmuelie.WinRTServer.Sample.Interfaces.IInput
[uuid(2474f7c0-9db1-4f4f-b614-dc5a89050b66)]
interface ITimes
{
String NameAndDescription { get; };
Windows.Foundation.DateTime UtcNow { get; };
Windows.Foundation.DateTime LocalNow { get; };
};

[uuid(2474f7c0-9db1-4f4f-b614-dc5a89050b64)]
interface IRemoteThing
{
Int32 Rem(Int32 a, Int32 b);
Windows.Foundation.IAsyncAction DelayAsync(Int32 ticks);
Windows.Foundation.IAsyncActionWithProgress<LoopProgress> LoopAsync(Int32 total);
Windows.Foundation.IAsyncOperationWithProgress<Windows.Foundation.Collections.IVectorView<Int32>, ListProgress> GenerateListAsync(ListOptions options);
event Windows.Foundation.TypedEventHandler<IRemoteThing, Object> LoopCompleted;
Windows.Foundation.DateTime NowUtc { get; };
Windows.Storage.Streams.IInputStream OpenFile(String path);
ITimes GetTimes(IInput input);
};

runtimeclass Input : [default]IInput
{
Input();
}
};

runtimeclass Times : [default] Shmuelie.WinRTServer.Sample.Interfaces.ITimes
runtimeclass Times : [default]ITimes
{
Times();
}
};

runtimeclass RemoteThing : [default]IRemoteThing
{
RemoteThing();
};
}
1 change: 0 additions & 1 deletion tests/Shmuelie.WinRTServer.Sample.ServerNet6/Input.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Runtime.InteropServices;
using Shmuelie.WinRTServer.Sample.Interfaces;

namespace Shmuelie.WinRTServer.Sample.Server;

Expand Down
1 change: 0 additions & 1 deletion tests/Shmuelie.WinRTServer.Sample.ServerNet6/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Shmuelie.WinRTServer.Sample.Interfaces;

namespace Shmuelie.WinRTServer.Sample.Server;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading;
using System.Threading.Tasks;
using Shmuelie.WinRTServer.Sample.Interfaces;
using Windows.Foundation;
using Windows.Storage.Streams;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" />
<ProjectReference Include="..\..\src\Shmuelie.WinRTServer\Shmuelie.WinRTServer.csproj" />
<CsWinRTInputs Include="..\Shmuelie.WinRTServer.Sample.Interfaces\bin\$(Platform)\$(Configuration)\net462\*.winmd">
<Name>%(Filename)</Name>
<IsWinMDFile>true</IsWinMDFile>
</CsWinRTInputs>
<ProjectReference Include="..\Shmuelie.WinRTServer.Sample.Metadata\Shmuelie.WinRTServer.Sample.Metadata.vcxproj" />
</ItemGroup>
<Target Name="BuiltProjectOutputGroup" DependsOnTargets="_SetBuildInnerTarget;DispatchToInnerBuilds" Returns="@(OutputItems)">
<ItemGroup>
<OutputItems Include="$(MSBuildProjectDirectory)\bin\$(Platform)\$(Configuration)\net8.0-windows10.0.22000.0\Shmuelie.WinRTServer.*">
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
<TargetFileName>%(Filename).%(Extension)</TargetFileName>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
<TargetDir>%(RootDir)%(Directory)</TargetDir>
<FinalOutputPath>%(FullPath)</FinalOutputPath>
</OutputItems>
</ItemGroup>
</Target>
</Project>
1 change: 0 additions & 1 deletion tests/Shmuelie.WinRTServer.Sample.ServerNet6/Times.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Runtime.InteropServices;
using Shmuelie.WinRTServer.Sample.Interfaces;

namespace Shmuelie.WinRTServer.Sample.Server;

Expand Down

0 comments on commit b60b832

Please sign in to comment.