diff --git a/.github/workflows/run-tests-macos-mono.yml b/.github/workflows/run-tests-macos-mono.yml
deleted file mode 100644
index a4f335a7c..000000000
--- a/.github/workflows/run-tests-macos-mono.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: "Unit and Integration Test: macOS (Mono)"
-on:
- pull_request:
- push:
- branches:
- - main
-
-jobs:
- check:
- runs-on: macos-13
- env:
- DOTNET_NOLOGO: true
-
- steps:
- - uses: actions/checkout@v4
- with:
- submodules: 'recursive'
-
- - name: Download dotnet framework
- uses: actions/setup-dotnet@v4
- with:
- dotnet-version: |
- 3.1.426
- 7.0.410
-
- - name: Download dotnet build-script tools
- run: dotnet tool restore
-
- - name: Install mono
- run: |
- ./tools/mono-install.sh
-
- - name: Run Unit tests using mono
- run: ./build.sh --target=Test.NetFramework.Unit.WithRetry
-
- - name: Run Integration tests using mono
- run: ./build.sh --target=Test.NetFramework.Integration.WithRetry
diff --git a/nuget/io.ably.nuspec b/nuget/io.ably.nuspec
index ee72efde9..1e0e48e36 100644
--- a/nuget/io.ably.nuspec
+++ b/nuget/io.ably.nuspec
@@ -20,26 +20,33 @@
+
+
+
+
+
+
+
diff --git a/src/IO.Ably.Android/IO.Ably.Android.csproj b/src/IO.Ably.Android/IO.Ably.Android.csproj
index c9288aeaa..a812f9749 100644
--- a/src/IO.Ably.Android/IO.Ably.Android.csproj
+++ b/src/IO.Ably.Android/IO.Ably.Android.csproj
@@ -17,6 +17,8 @@
v11.0
+ true
+ obj/Generated
true
@@ -51,9 +53,16 @@
-
+
+
+ ..\packages\MessagePack.3.1.4\lib\netstandard2.0\MessagePack.dll
+ True
+
+
+ ..\packages\MessagePack.Annotations.3.1.4\lib\netstandard2.0\MessagePack.Annotations.dll
+
..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net45+win8+wpa81\Microsoft.Threading.Tasks.dll
@@ -65,9 +74,6 @@
-
- ..\packages\MsgPack.Cli.0.9.2\lib\MonoAndroid10\MsgPack.dll
-
..\packages\Newtonsoft.Json.13.0.1\lib\netstandard2.0\Newtonsoft.Json.dll
@@ -87,8 +93,8 @@
..\packages\System.Threading.Channels.4.5.0\lib\netstandard2.0\System.Threading.Channels.dll
True
-
- ..\packages\System.Threading.Tasks.Extensions.4.5.0\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll
+
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll
True
@@ -107,6 +113,10 @@
Designer
+
+
+
+
{412deb5f-7936-4027-8bf8-977f23d465ed}
@@ -114,7 +124,6 @@
-
-
+
+
+ ..\packages\MessagePack.3.1.4\lib\netstandard2.0\MessagePack.dll
+ True
+
+
+ ..\packages\MessagePack.Annotations.3.1.4\lib\netstandard2.0\MessagePack.Annotations.dll
+
+
+ ..\packages\Microsoft.Bcl.AsyncInterfaces.8.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll
+
+
+ ..\packages\Microsoft.NET.StringTools.17.11.4\lib\netstandard2.0\Microsoft.NET.StringTools.dll
+
..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll
+
+ ..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+
+
+ ..\packages\System.Collections.Immutable.8.0.0\lib\net462\System.Collections.Immutable.dll
+
+
+ ..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll
+
..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1\System.Net.Http.dll
-
- ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
+
+
+ ..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+
+
+ ..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
..\packages\System.Threading.Channels.4.6.0\lib\netstandard2.0\System.Threading.Channels.dll
-
- ..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll
+
+ ..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
@@ -98,6 +126,8 @@
+
+
@@ -112,5 +142,7 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
diff --git a/src/IO.Ably.NETFramework/app.config b/src/IO.Ably.NETFramework/app.config
index 0a15aa816..15011511c 100644
--- a/src/IO.Ably.NETFramework/app.config
+++ b/src/IO.Ably.NETFramework/app.config
@@ -1,15 +1,19 @@
-
+
-
-
+
+
-
-
+
+
+
+
+
+
-
+
diff --git a/src/IO.Ably.NETFramework/packages.config b/src/IO.Ably.NETFramework/packages.config
index 63e0caaa8..d060e18b7 100644
--- a/src/IO.Ably.NETFramework/packages.config
+++ b/src/IO.Ably.NETFramework/packages.config
@@ -1,10 +1,21 @@
+
+
+
+
+
-
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/IO.Ably.NETStandard20/IO.Ably.NETStandard20.csproj b/src/IO.Ably.NETStandard20/IO.Ably.NETStandard20.csproj
index 52acb688c..667aa2ae3 100644
--- a/src/IO.Ably.NETStandard20/IO.Ably.NETStandard20.csproj
+++ b/src/IO.Ably.NETStandard20/IO.Ably.NETStandard20.csproj
@@ -7,6 +7,8 @@
false
IO.Ably
IO.Ably
+ true
+ $(BaseIntermediateOutputPath)Generated
@@ -34,8 +36,6 @@
-
-
@@ -45,14 +45,14 @@
-
+
all
runtime; build; native; contentfiles; analyzers
-
+
diff --git a/src/IO.Ably.NetFramework.sln b/src/IO.Ably.NetFramework.sln
index 7703a1bf5..dfff13033 100644
--- a/src/IO.Ably.NetFramework.sln
+++ b/src/IO.Ably.NetFramework.sln
@@ -31,8 +31,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.Tests.NETFramework"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared", "IO.Ably.Shared\IO.Ably.Shared.shproj", "{3553E1B2-8F1F-4E83-9524-08E702C14FCF}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared.MsgPack", "IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.shproj", "{EEBF3249-3CA3-4078-A188-F8B916C3F4C2}"
-EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Tests.Shared", "IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.shproj", "{1609F12C-8216-4E7C-ADE0-240BFE160242}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.DeltaCodec", "..\lib\delta-codec\IO.Ably.DeltaCodec\IO.Ably.DeltaCodec.csproj", "{EEAD196C-8D90-4402-9EAC-273F0DF5EFCB}"
@@ -43,7 +41,6 @@ Global
IO.Ably.Shared\IO.Ably.Shared.projitems*{2d265650-b1ec-4f8d-b043-a2e3dcc23fd8}*SharedItemsImports = 4
IO.Ably.Shared\IO.Ably.Shared.projitems*{3553e1b2-8f1f-4e83-9524-08e702c14fcf}*SharedItemsImports = 13
IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.projitems*{567feef7-41af-42f2-ad34-546a278355b1}*SharedItemsImports = 4
- IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.projitems*{eebf3249-3ca3-4078-a188-f8b916c3f4c2}*SharedItemsImports = 13
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
AppStore|Any CPU = AppStore|Any CPU
@@ -279,7 +276,6 @@ Global
{2D265650-B1EC-4F8D-B043-A2E3DCC23FD8} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{567FEEF7-41AF-42F2-AD34-546A278355B1} = {C2F43DB7-AAA0-4687-9897-5D686EC91245}
{3553E1B2-8F1F-4E83-9524-08E702C14FCF} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
- {EEBF3249-3CA3-4078-A188-F8B916C3F4C2} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{1609F12C-8216-4E7C-ADE0-240BFE160242} = {C2F43DB7-AAA0-4687-9897-5D686EC91245}
{EEAD196C-8D90-4402-9EAC-273F0DF5EFCB} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
EndGlobalSection
diff --git a/src/IO.Ably.NetStandard.sln b/src/IO.Ably.NetStandard.sln
index 9ceaf9a9a..4d987bec1 100644
--- a/src/IO.Ably.NetStandard.sln
+++ b/src/IO.Ably.NetStandard.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.28729.10
+# Visual Studio Version 17
+VisualStudioVersion = 17.4.33213.308
MinimumVisualStudioVersion = 15.0.26730.10
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{1EA29F05-BF68-4BA8-A58F-C7C131E3FC62}"
ProjectSection(SolutionItems) = preProject
@@ -14,9 +14,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solutio
CommonAssemblyInfo.cs = CommonAssemblyInfo.cs
..\nuget\io.ably.nuspec = ..\nuget\io.ably.nuspec
IO.Ably.ruleset = IO.Ably.ruleset
+ IO.Ably.Tests.ruleset = IO.Ably.Tests.ruleset
..\README.md = ..\README.md
stylecop.json = stylecop.json
- IO.Ably.Tests.ruleset = IO.Ably.Tests.ruleset
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Ably", "Ably", "{8A0F718E-2168-4CC7-8F7B-A65508B52B0F}"
@@ -27,20 +27,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IO.Ably.NETStandard20", "IO
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared", "IO.Ably.Shared\IO.Ably.Shared.shproj", "{3553E1B2-8F1F-4E83-9524-08E702C14FCF}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared.MsgPack", "IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.shproj", "{EEBF3249-3CA3-4078-A188-F8B916C3F4C2}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IO.Ably.Tests.DotNET", "IO.Ably.Tests.DotNET\IO.Ably.Tests.DotNET.csproj", "{4805A9DA-3412-4BE8-8B95-5A0EFDA1AC01}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Tests.Shared", "IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.shproj", "{1609F12C-8216-4E7C-ADE0-240BFE160242}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.DeltaCodec", "..\lib\delta-codec\IO.Ably.DeltaCodec\IO.Ably.DeltaCodec.csproj", "{D8CAACFA-FE6E-46BC-9B23-8AA3B2055125}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IO.Ably.DeltaCodec", "..\lib\delta-codec\IO.Ably.DeltaCodec\IO.Ably.DeltaCodec.csproj", "{D8CAACFA-FE6E-46BC-9B23-8AA3B2055125}"
EndProject
Global
- GlobalSection(SharedMSBuildProjectFiles) = preSolution
- IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.projitems*{1609f12c-8216-4e7c-ade0-240bfe160242}*SharedItemsImports = 13
- IO.Ably.Shared\IO.Ably.Shared.projitems*{3553e1b2-8f1f-4e83-9524-08e702c14fcf}*SharedItemsImports = 13
- IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.projitems*{eebf3249-3ca3-4078-a188-f8b916c3f4c2}*SharedItemsImports = 13
- EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
AppStore|Any CPU = AppStore|Any CPU
AppStore|ARM = AppStore|ARM
@@ -274,7 +267,6 @@ Global
GlobalSection(NestedProjects) = preSolution
{48EA337F-AE7B-4001-BD8C-DA1668FC6CBD} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{3553E1B2-8F1F-4E83-9524-08E702C14FCF} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
- {EEBF3249-3CA3-4078-A188-F8B916C3F4C2} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{4805A9DA-3412-4BE8-8B95-5A0EFDA1AC01} = {C2F43DB7-AAA0-4687-9897-5D686EC91245}
{1609F12C-8216-4E7C-ADE0-240BFE160242} = {C2F43DB7-AAA0-4687-9897-5D686EC91245}
{D8CAACFA-FE6E-46BC-9B23-8AA3B2055125} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
@@ -282,4 +274,10 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F69D4156-FC22-4B8E-AD72-2A7323D42CC4}
EndGlobalSection
+ GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.projitems*{1609f12c-8216-4e7c-ade0-240bfe160242}*SharedItemsImports = 13
+ IO.Ably.Shared\IO.Ably.Shared.projitems*{3553e1b2-8f1f-4e83-9524-08e702c14fcf}*SharedItemsImports = 13
+ IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.projitems*{4805a9da-3412-4be8-8b95-5a0efda1ac01}*SharedItemsImports = 5
+ IO.Ably.Shared\IO.Ably.Shared.projitems*{48ea337f-ae7b-4001-bd8c-da1668fc6cbd}*SharedItemsImports = 5
+ EndGlobalSection
EndGlobal
diff --git a/src/IO.Ably.Package.sln b/src/IO.Ably.Package.sln
index baf2c5f2d..dbbd45d06 100644
--- a/src/IO.Ably.Package.sln
+++ b/src/IO.Ably.Package.sln
@@ -30,8 +30,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "IO.Ably.NETStandard20", "IO
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared", "IO.Ably.Shared\IO.Ably.Shared.shproj", "{3553E1B2-8F1F-4E83-9524-08E702C14FCF}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared.MsgPack", "IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.shproj", "{EEBF3249-3CA3-4078-A188-F8B916C3F4C2}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.DeltaCodec", "..\lib\delta-codec\IO.Ably.DeltaCodec\IO.Ably.DeltaCodec.csproj", "{55FD7D98-585B-4304-9B3F-3F518DB5CBFF}"
EndProject
Global
@@ -41,7 +39,6 @@ Global
IO.Ably.Shared\IO.Ably.Shared.projitems*{3180aa9d-9800-4eb2-87f0-ada47e2fff3d}*SharedItemsImports = 4
IO.Ably.Shared\IO.Ably.Shared.projitems*{3553e1b2-8f1f-4e83-9524-08e702c14fcf}*SharedItemsImports = 13
IO.Ably.Shared\IO.Ably.Shared.projitems*{8bb7b13c-e9f4-4d1b-bccc-af890a23ece6}*SharedItemsImports = 4
- IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.projitems*{eebf3249-3ca3-4078-a188-f8b916c3f4c2}*SharedItemsImports = 13
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -144,7 +141,6 @@ Global
{8BB7B13C-E9F4-4D1B-BCCC-AF890A23ECE6} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{48EA337F-AE7B-4001-BD8C-DA1668FC6CBD} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{3553E1B2-8F1F-4E83-9524-08E702C14FCF} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
- {EEBF3249-3CA3-4078-A188-F8B916C3F4C2} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{55FD7D98-585B-4304-9B3F-3F518DB5CBFF} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
diff --git a/src/IO.Ably.PackagePush.sln b/src/IO.Ably.PackagePush.sln
index c4d4596dc..1b7974f83 100644
--- a/src/IO.Ably.PackagePush.sln
+++ b/src/IO.Ably.PackagePush.sln
@@ -25,8 +25,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.iOS", "IO.Ably.iOS\
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared", "IO.Ably.Shared\IO.Ably.Shared.shproj", "{3553E1B2-8F1F-4E83-9524-08E702C14FCF}"
EndProject
-Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "IO.Ably.Shared.MsgPack", "IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.shproj", "{EEBF3249-3CA3-4078-A188-F8B916C3F4C2}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.DeltaCodec", "..\lib\delta-codec\IO.Ably.DeltaCodec\IO.Ably.DeltaCodec.csproj", "{53CA3FD4-E11A-4368-A7A5-BCAB40D08BED}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Ably.NETStandard20", "IO.Ably.NETStandard20\IO.Ably.NETStandard20.csproj", "{97ED15E5-6546-4437-BF4F-B929700CE922}"
@@ -42,7 +40,6 @@ Global
IO.Ably.Shared\IO.Ably.Shared.projitems*{3553e1b2-8f1f-4e83-9524-08e702c14fcf}*SharedItemsImports = 13
IO.Ably.Tests.Shared\IO.Ably.Tests.Shared.projitems*{567feef7-41af-42f2-ad34-546a278355b1}*SharedItemsImports = 4
IO.Ably.Shared\IO.Ably.Shared.projitems*{8bb7b13c-e9f4-4d1b-bccc-af890a23ece6}*SharedItemsImports = 4
- IO.Ably.Shared.MsgPack\IO.Ably.Shared.MsgPack.projitems*{eebf3249-3ca3-4078-a188-f8b916c3f4c2}*SharedItemsImports = 13
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
AppStore|Any CPU = AppStore|Any CPU
@@ -406,7 +403,6 @@ Global
GlobalSection(NestedProjects) = preSolution
{8BB7B13C-E9F4-4D1B-BCCC-AF890A23ECE6} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{3553E1B2-8F1F-4E83-9524-08E702C14FCF} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
- {EEBF3249-3CA3-4078-A188-F8B916C3F4C2} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{53CA3FD4-E11A-4368-A7A5-BCAB40D08BED} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{97ED15E5-6546-4437-BF4F-B929700CE922} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
{F0010AA8-63C3-47D7-95E9-A5D1D04DA325} = {8A0F718E-2168-4CC7-8F7B-A65508B52B0F}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/CapabilityMessagePackSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/CapabilityMessagePackSerializer.cs
deleted file mode 100644
index 2004a0587..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/CapabilityMessagePackSerializer.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using MsgPack;
-using MsgPack.Serialization;
-
-namespace IO.Ably.CustomSerialisers
-{
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class CapabilityMessagePackSerializer : MessagePackSerializer
- {
- public CapabilityMessagePackSerializer(SerializationContext ownerContext)
- : base(ownerContext)
- {
- }
-
- protected override void PackToCore(Packer packer, Capability objectTree)
- {
- packer.Pack(objectTree.ToJson());
- }
-
- protected override Capability UnpackFromCore(Unpacker unpacker)
- {
- MessagePackObject obj = string.Empty;
- if (unpacker.ReadObject(out obj))
- {
- return new Capability(obj.ToString());
- }
-
- return new Capability();
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/DateTimeOffsetMessagePackSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/DateTimeOffsetMessagePackSerializer.cs
deleted file mode 100644
index 843708df9..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/DateTimeOffsetMessagePackSerializer.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using MsgPack;
-using MsgPack.Serialization;
-
-namespace IO.Ably.CustomSerialisers
-{
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class DateTimeOffsetMessagePackSerializer : MessagePackSerializer
- {
- public DateTimeOffsetMessagePackSerializer(SerializationContext ownerContext)
- : base(ownerContext) { }
-
- protected override void PackToCore(Packer packer, DateTimeOffset objectTree)
- {
- packer.Pack((long)objectTree.ToUnixTimeInMilliseconds());
- }
-
- protected override DateTimeOffset UnpackFromCore(Unpacker unpacker)
- {
- var data = unpacker.LastReadData;
- return data.AsInt64().FromUnixTimeInMilliseconds();
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_Auth_TokenDetailsSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_Auth_TokenDetailsSerializer.cs
deleted file mode 100644
index 3ca97609a..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_Auth_TokenDetailsSerializer.cs
+++ /dev/null
@@ -1,272 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers
-{
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class IO_Ably_Auth_TokenDetailsSerializer : MsgPack.Serialization.MessagePackSerializer
- {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer1;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer2;
-
- private MsgPack.Serialization.MessagePackSerializer> _serializer3;
-
- public IO_Ably_Auth_TokenDetailsSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context)
- {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- this._serializer1 = context.GetSerializer(MsgPack.Serialization.DateTimeMessagePackSerializerHelpers.DetermineDateTimeConversionMethod(context, MsgPack.Serialization.DateTimeMemberConversionMethod.Default));
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer2 = context.GetSerializer(schema1);
- MsgPack.Serialization.PolymorphismSchema schema2 = default(MsgPack.Serialization.PolymorphismSchema);
- schema2 = null;
- this._serializer3 = context.GetSerializer>(schema2);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, TokenDetails objectTree)
- {
- packer.PackMapHeader(6);
- this._serializer0.PackTo(packer, "token");
- this._serializer0.PackTo(packer, objectTree.Token);
- this._serializer0.PackTo(packer, "keyName");
- this._serializer0.PackTo(packer, objectTree.KeyName);
- this._serializer0.PackTo(packer, "expires");
- this._serializer1.PackTo(packer, objectTree.Expires);
- this._serializer0.PackTo(packer, "issued");
- this._serializer1.PackTo(packer, objectTree.Issued);
- this._serializer0.PackTo(packer, "capability");
- this._serializer2.PackTo(packer, objectTree.Capability);
- this._serializer0.PackTo(packer, "clientId");
- this._serializer0.PackTo(packer, objectTree.ClientId);
- }
-
- protected override TokenDetails UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- TokenDetails result = default(TokenDetails);
- result = new TokenDetails();
- {
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1))
- {
- string key = default(string);
- string nullable4 = default(string);
- nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "MemberName");
- if (((nullable4 == null)
- == false))
- {
- key = nullable4;
- }
- else
- {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "clientId"))
- {
- string nullable9 = default(string);
- nullable9 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "System.String ClientId");
- if (((nullable9 == null)
- == false))
- {
- result.ClientId = nullable9;
- }
- }
- else
- {
- if ((key == "keyName"))
- {
- string keyNameValue = null;
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- keyNameValue = this._serializer0.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable10 = default(MsgPack.Unpacker);
- disposable10 = unpacker.ReadSubtree();
- try
- {
- keyNameValue = this._serializer0.UnpackFrom(disposable10);
- }
- finally
- {
- if (((disposable10 == null)
- == false))
- {
- disposable10.Dispose();
- }
- }
- }
- if (((keyNameValue == null)
- == false))
- {
- result.KeyName = keyNameValue;
- }
- }
- else if ((key == "capability"))
- {
- IO.Ably.Capability nullable8 = default(IO.Ably.Capability);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable8 = this._serializer2.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker);
- disposable4 = unpacker.ReadSubtree();
- try
- {
- nullable8 = this._serializer2.UnpackFrom(disposable4);
- }
- finally
- {
- if (((disposable4 == null)
- == false))
- {
- disposable4.Dispose();
- }
- }
- }
- if (((nullable8 == null)
- == false))
- {
- result.Capability = nullable8;
- }
- }
- else
- {
- if ((key == "issued"))
- {
- System.Nullable nullable7 = default(System.Nullable);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable7 = this._serializer3.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable3 = default(MsgPack.Unpacker);
- disposable3 = unpacker.ReadSubtree();
- try
- {
- nullable7 = this._serializer3.UnpackFrom(disposable3);
- }
- finally
- {
- if (((disposable3 == null)
- == false))
- {
- disposable3.Dispose();
- }
- }
- }
- if (nullable7.HasValue)
- {
- result.Issued = nullable7.Value;
- }
- }
- else
- {
- if ((key == "expires"))
- {
- System.Nullable nullable6 = default(System.Nullable);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable6 = this._serializer3.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker);
- disposable2 = unpacker.ReadSubtree();
- try
- {
- nullable6 = this._serializer3.UnpackFrom(disposable2);
- }
- finally
- {
- if (((disposable2 == null)
- == false))
- {
- disposable2.Dispose();
- }
- }
- }
- if (nullable6.HasValue)
- {
- result.Expires = nullable6.Value;
- }
- }
- else
- {
- if ((key == "token"))
- {
- string nullable5 = default(string);
- nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(TokenDetails), "System.String Token");
- if (((nullable5 == null)
- == false))
- {
- result.Token = nullable5;
- }
- }
- else
- {
- unpacker.Skip();
- }
- }
- }
- }
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition)
- {
- return whenTrue;
- }
- else
- {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_CapabilitySerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_CapabilitySerializer.cs
deleted file mode 100644
index 8d166b5fc..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_CapabilitySerializer.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class IO_Ably_CapabilitySerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
-
- public IO_Ably_CapabilitySerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- }
-
-
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.Capability objectTree)
- {
- packer.PackString(objectTree.ToJson());
- }
-
- protected override IO.Ably.Capability UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- var itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
-
- if (unpacker.LastReadData.IsRaw)
- {
- var capability = unpacker.LastReadData.ToString();
- return new Capability(capability);
- }
-
- return new Capability();
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionDetailsMessageSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionDetailsMessageSerializer.cs
deleted file mode 100644
index 250f33936..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionDetailsMessageSerializer.cs
+++ /dev/null
@@ -1,258 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public class IO_Ably_ConnectionDetailsMessageSerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer> _serializer1;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer2;
-
- public IO_Ably_ConnectionDetailsMessageSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer1 = context.GetSerializer>(schema1);
- MsgPack.Serialization.PolymorphismSchema schema2 = default(MsgPack.Serialization.PolymorphismSchema);
- schema2 = null;
- this._serializer2 = context.GetSerializer(schema2);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.ConnectionDetails objectTree) {
- packer.PackMapHeader(7);
- this._serializer0.PackTo(packer, "clientId");
- this._serializer0.PackTo(packer, objectTree.ClientId);
- this._serializer0.PackTo(packer, "connectionKey");
- this._serializer0.PackTo(packer, objectTree.ConnectionKey);
- this._serializer0.PackTo(packer, "connectionStateTtl");
- this._serializer1.PackTo(packer, objectTree.ConnectionStateTtl);
- this._serializer0.PackTo(packer, "maxFrameSize");
- this._serializer2.PackTo(packer, objectTree.MaxFrameSize);
- this._serializer0.PackTo(packer, "maxInboundRate");
- this._serializer2.PackTo(packer, objectTree.MaxInboundRate);
- this._serializer0.PackTo(packer, "maxMessageSize");
- this._serializer2.PackTo(packer, objectTree.MaxMessageSize);
- this._serializer0.PackTo(packer, "serverId");
- this._serializer0.PackTo(packer, objectTree.ServerId);
- }
-
- protected override IO.Ably.ConnectionDetails UnpackFromCore(MsgPack.Unpacker unpacker) {
- IO.Ably.ConnectionDetails result = default(IO.Ably.ConnectionDetails);
- result = new IO.Ably.ConnectionDetails();
- if (unpacker.IsArrayHeader) {
- int unpacked = default(int);
- int itemsCount = default(int);
- itemsCount = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- string nullable = default(string);
- if ((unpacked < itemsCount)) {
- nullable = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String clientId");
- }
- if (((nullable == null)
- == false)) {
- result.ClientId = nullable;
- }
- unpacked = (unpacked + 1);
- string nullable0 = default(string);
- if ((unpacked < itemsCount)) {
- nullable0 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String connectionKey");
- }
- if (((nullable0 == null)
- == false)) {
- result.ConnectionKey = nullable0;
- }
- unpacked = (unpacked + 1);
- System.Nullable nullable1 = default(System.Nullable);
- if ((unpacked < itemsCount)) {
- if ((unpacker.Read() == false)) {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(2);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false))) {
- nullable1 = this._serializer1.UnpackFrom(unpacker);
- }
- else {
- MsgPack.Unpacker disposable = default(MsgPack.Unpacker);
- disposable = unpacker.ReadSubtree();
- try {
- nullable1 = this._serializer1.UnpackFrom(disposable);
- }
- finally {
- if (((disposable == null)
- == false)) {
- disposable.Dispose();
- }
- }
- }
- }
- if (nullable1.HasValue) {
- result.ConnectionStateTtl = nullable1;
- }
- unpacked = (unpacked + 1);
- System.Nullable nullable2 = default(System.Nullable);
- if ((unpacked < itemsCount)) {
- nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxFrameSize");
- }
- if (nullable2.HasValue) {
- result.MaxFrameSize = nullable2.Value;
- }
- unpacked = (unpacked + 1);
- System.Nullable nullable3 = default(System.Nullable);
- if ((unpacked < itemsCount)) {
- nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxInboundRate");
- }
- if (nullable3.HasValue) {
- result.MaxInboundRate = nullable3.Value;
- }
- unpacked = (unpacked + 1);
- System.Nullable nullable4 = default(System.Nullable);
- if ((unpacked < itemsCount)) {
- nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxMessageSize");
- }
- if (nullable4.HasValue) {
- result.MaxMessageSize = nullable4.Value;
- }
- unpacked = (unpacked + 1);
- string nullable5 = default(string);
- if ((unpacked < itemsCount)) {
- nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String serverId");
- }
- if (((nullable5 == null)
- == false)) {
- result.ServerId = nullable5;
- }
- unpacked = (unpacked + 1);
- }
- else {
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1)) {
- string key = default(string);
- string nullable6 = default(string);
- nullable6 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "MemberName");
- if (((nullable6 == null)
- == false)) {
- key = nullable6;
- }
- else {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "serverId")) {
- string nullable13 = default(string);
- nullable13 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String serverId");
- if (((nullable13 == null)
- == false)) {
- result.ServerId = nullable13;
- }
- }
- else {
- if ((key == "maxMessageSize")) {
- System.Nullable nullable12 = default(System.Nullable);
- nullable12 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxMessageSize");
- if (nullable12.HasValue) {
- result.MaxMessageSize = nullable12.Value;
- }
- }
- else {
- if ((key == "maxInboundRate")) {
- System.Nullable nullable11 = default(System.Nullable);
- nullable11 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxInboundRate");
- if (nullable11.HasValue) {
- result.MaxInboundRate = nullable11.Value;
- }
- }
- else {
- if ((key == "maxFrameSize")) {
- System.Nullable nullable10 = default(System.Nullable);
- nullable10 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker, typeof(IO.Ably.ConnectionDetails), "Int64 maxFrameSize");
- if (nullable10.HasValue) {
- result.MaxFrameSize = nullable10.Value;
- }
- }
- else {
- if ((key == "connectionStateTtl")) {
- System.Nullable nullable9 = default(System.Nullable);
- if ((unpacker.Read() == false)) {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false))) {
- nullable9 = this._serializer1.UnpackFrom(unpacker);
- }
- else {
- MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker);
- disposable0 = unpacker.ReadSubtree();
- try {
- nullable9 = this._serializer1.UnpackFrom(disposable0);
- }
- finally {
- if (((disposable0 == null)
- == false)) {
- disposable0.Dispose();
- }
- }
- }
- if (nullable9.HasValue) {
- result.ConnectionStateTtl = nullable9;
- }
- }
- else {
- if ((key == "connectionKey")) {
- string nullable8 = default(string);
- nullable8 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String connectionKey");
- if (((nullable8 == null)
- == false)) {
- result.ConnectionKey = nullable8;
- }
- }
- else {
- if ((key == "clientId")) {
- string nullable7 = default(string);
- nullable7 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ConnectionDetails), "System.String clientId");
- if (((nullable7 == null)
- == false)) {
- result.ClientId = nullable7;
- }
- }
- else {
- unpacker.Skip();
- }
- }
- }
- }
- }
- }
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionTypesSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionTypesSerializer.cs
deleted file mode 100644
index 1bdc04678..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ConnectionTypesSerializer.cs
+++ /dev/null
@@ -1,193 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class IO_Ably_ConnectionTypesSerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer1;
-
- public IO_Ably_ConnectionTypesSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer1 = context.GetSerializer(schema1);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.ConnectionTypes objectTree) {
- packer.PackMapHeader(3);
- this._serializer0.PackTo(packer, "all");
- this._serializer1.PackTo(packer, objectTree.All);
- this._serializer0.PackTo(packer, "plain");
- this._serializer1.PackTo(packer, objectTree.Plain);
- this._serializer0.PackTo(packer, "tls");
- this._serializer1.PackTo(packer, objectTree.Tls);
- }
-
- protected override IO.Ably.ConnectionTypes UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- IO.Ably.ConnectionTypes result = default(IO.Ably.ConnectionTypes);
- result = new IO.Ably.ConnectionTypes();
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1))
- {
- string key = default(string);
- string nullable2 = default(string);
- nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker,
- typeof(IO.Ably.ConnectionTypes), "MemberName");
- if (((nullable2 == null)
- == false))
- {
- key = nullable2;
- }
- else
- {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "tls"))
- {
- IO.Ably.ResourceCount nullable5 = default(IO.Ably.ResourceCount);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable5 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker);
- disposable4 = unpacker.ReadSubtree();
- try
- {
- nullable5 = this._serializer1.UnpackFrom(disposable4);
- }
- finally
- {
- if (((disposable4 == null)
- == false))
- {
- disposable4.Dispose();
- }
- }
- }
- if (((nullable5 == null)
- == false))
- {
- result.Tls = nullable5;
- }
- }
- else
- {
- if ((key == "plain"))
- {
- IO.Ably.ResourceCount nullable4 = default(IO.Ably.ResourceCount);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable4 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable3 = default(MsgPack.Unpacker);
- disposable3 = unpacker.ReadSubtree();
- try
- {
- nullable4 = this._serializer1.UnpackFrom(disposable3);
- }
- finally
- {
- if (((disposable3 == null)
- == false))
- {
- disposable3.Dispose();
- }
- }
- }
- if (((nullable4 == null)
- == false))
- {
- result.Plain = nullable4;
- }
- }
- else
- {
- if ((key == "all"))
- {
- IO.Ably.ResourceCount nullable3 = default(IO.Ably.ResourceCount);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable3 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable2 = default(MsgPack.Unpacker);
- disposable2 = unpacker.ReadSubtree();
- try
- {
- nullable3 = this._serializer1.UnpackFrom(disposable2);
- }
- finally
- {
- if (((disposable2 == null)
- == false))
- {
- disposable2.Dispose();
- }
- }
- }
- if (((nullable3 == null)
- == false))
- {
- result.All = nullable3;
- }
- }
- else
- {
- unpacker.Skip();
- }
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ErrorInfoSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ErrorInfoSerializer.cs
deleted file mode 100644
index c13724514..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_ErrorInfoSerializer.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- [System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public class IO_Ably_ErrorInfoSerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer1;
-
- private MsgPack.Serialization.MessagePackSerializer> _serializer2;
-
- public IO_Ably_ErrorInfoSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer1 = context.GetSerializer(schema1);
- MsgPack.Serialization.PolymorphismSchema schema2 = default(MsgPack.Serialization.PolymorphismSchema);
- schema2 = null;
- this._serializer2 = context.GetSerializer>(schema2);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.ErrorInfo objectTree) {
- packer.PackMapHeader(3);
- this._serializer0.PackTo(packer, "code");
- this._serializer1.PackTo(packer, objectTree.Code);
- this._serializer0.PackTo(packer, "message");
- this._serializer0.PackTo(packer, objectTree.Message);
- this._serializer0.PackTo(packer, "statusCode");
- this._serializer2.PackTo(packer, objectTree.StatusCode);
- }
-
- protected override IO.Ably.ErrorInfo UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- IO.Ably.ErrorInfo result = default(IO.Ably.ErrorInfo);
- result = new IO.Ably.ErrorInfo();
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1))
- {
- string key = default(string);
- string nullable3 = default(string);
- nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.ErrorInfo),
- "MemberName");
- if (((nullable3 == null)
- == false))
- {
- key = nullable3;
- }
- else
- {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "statusCode"))
- {
- System.Nullable nullable7 =
- default(System.Nullable);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable7 = this._serializer2.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable0 = default(MsgPack.Unpacker);
- disposable0 = unpacker.ReadSubtree();
- try
- {
- nullable7 = this._serializer2.UnpackFrom(disposable0);
- }
- finally
- {
- if (((disposable0 == null)
- == false))
- {
- disposable0.Dispose();
- }
- }
- }
- if (nullable7.HasValue)
- {
- result.StatusCode = nullable7;
- }
- }
- else
- {
- if ((key == "message"))
- {
- string nullable5 = default(string);
- nullable5 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker,
- typeof(IO.Ably.ErrorInfo), "System.String message");
- if (((nullable5 == null)
- == false))
- {
- result.Message = nullable5;
- }
- }
- else
- {
- if ((key == "code"))
- {
- System.Nullable nullable4 = default(System.Nullable);
- nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt32Value(unpacker,
- typeof(IO.Ably.ErrorInfo), "Int32 code");
- if (nullable4.HasValue)
- {
- result.Code = nullable4.Value;
- }
- }
- else
- {
- unpacker.Skip();
- }
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_InboundMessageTrafficSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_InboundMessageTrafficSerializer.cs
deleted file mode 100644
index 3436658ce..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_InboundMessageTrafficSerializer.cs
+++ /dev/null
@@ -1,193 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class IO_Ably_InboundMessageTrafficSerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer1;
-
- public IO_Ably_InboundMessageTrafficSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer1 = context.GetSerializer(schema1);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.InboundMessageTraffic objectTree) {
- packer.PackMapHeader(3);
- this._serializer0.PackTo(packer, "all");
- this._serializer1.PackTo(packer, objectTree.All);
- this._serializer0.PackTo(packer, "realtime");
- this._serializer1.PackTo(packer, objectTree.Realtime);
- this._serializer0.PackTo(packer, "rest");
- this._serializer1.PackTo(packer, objectTree.Rest);
- }
-
- protected override IO.Ably.InboundMessageTraffic UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- IO.Ably.InboundMessageTraffic result = default(IO.Ably.InboundMessageTraffic);
- result = new IO.Ably.InboundMessageTraffic();
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1))
- {
- string key = default(string);
- string nullable4 = default(string);
- nullable4 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker,
- typeof(IO.Ably.InboundMessageTraffic), "MemberName");
- if (((nullable4 == null)
- == false))
- {
- key = nullable4;
- }
- else
- {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "rest"))
- {
- IO.Ably.MessageTypes nullable9 = default(IO.Ably.MessageTypes);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable9 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable8 = default(MsgPack.Unpacker);
- disposable8 = unpacker.ReadSubtree();
- try
- {
- nullable9 = this._serializer1.UnpackFrom(disposable8);
- }
- finally
- {
- if (((disposable8 == null)
- == false))
- {
- disposable8.Dispose();
- }
- }
- }
- if (((nullable9 == null)
- == false))
- {
- result.Rest = nullable9;
- }
- }
- else
- {
- if ((key == "realtime"))
- {
- IO.Ably.MessageTypes nullable8 = default(IO.Ably.MessageTypes);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable8 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable7 = default(MsgPack.Unpacker);
- disposable7 = unpacker.ReadSubtree();
- try
- {
- nullable8 = this._serializer1.UnpackFrom(disposable7);
- }
- finally
- {
- if (((disposable7 == null)
- == false))
- {
- disposable7.Dispose();
- }
- }
- }
- if (((nullable8 == null)
- == false))
- {
- result.Realtime = nullable8;
- }
- }
- else
- {
- if ((key == "all"))
- {
- IO.Ably.MessageTypes nullable5 = default(IO.Ably.MessageTypes);
- if ((unpacker.Read() == false))
- {
- throw MsgPack.Serialization.SerializationExceptions.NewMissingItem(i);
- }
- if (((unpacker.IsArrayHeader == false)
- && (unpacker.IsMapHeader == false)))
- {
- nullable5 = this._serializer1.UnpackFrom(unpacker);
- }
- else
- {
- MsgPack.Unpacker disposable4 = default(MsgPack.Unpacker);
- disposable4 = unpacker.ReadSubtree();
- try
- {
- nullable5 = this._serializer1.UnpackFrom(disposable4);
- }
- finally
- {
- if (((disposable4 == null)
- == false))
- {
- disposable4.Dispose();
- }
- }
- }
- if (((nullable5 == null)
- == false))
- {
- result.All = nullable5;
- }
- }
- else
- {
- unpacker.Skip();
- }
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageCountSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageCountSerializer.cs
deleted file mode 100644
index f26a891c6..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageCountSerializer.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IO.Ably.CustomSerialisers {
-
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
- public class IO_Ably_MessageCountSerializer : MsgPack.Serialization.MessagePackSerializer {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer _serializer1;
-
- public IO_Ably_MessageCountSerializer(MsgPack.Serialization.SerializationContext context) :
- base(context) {
- MsgPack.Serialization.PolymorphismSchema schema0 = default(MsgPack.Serialization.PolymorphismSchema);
- schema0 = null;
- this._serializer0 = context.GetSerializer(schema0);
- MsgPack.Serialization.PolymorphismSchema schema1 = default(MsgPack.Serialization.PolymorphismSchema);
- schema1 = null;
- this._serializer1 = context.GetSerializer(schema1);
- }
-
- protected override void PackToCore(MsgPack.Packer packer, IO.Ably.MessageCount objectTree) {
- packer.PackMapHeader(2);
- this._serializer0.PackTo(packer, "count");
- this._serializer1.PackTo(packer, objectTree.Count);
- this._serializer0.PackTo(packer, "data");
- this._serializer1.PackTo(packer, objectTree.Data);
- }
-
- protected override IO.Ably.MessageCount UnpackFromCore(MsgPack.Unpacker unpacker)
- {
- IO.Ably.MessageCount result = default(IO.Ably.MessageCount);
- result = new IO.Ably.MessageCount();
- int itemsCount0 = default(int);
- itemsCount0 = MsgPack.Serialization.UnpackHelpers.GetItemsCount(unpacker);
- for (int i = 0; (i < itemsCount0); i = (i + 1))
- {
- string key = default(string);
- string nullable1 = default(string);
- nullable1 = MsgPack.Serialization.UnpackHelpers.UnpackStringValue(unpacker, typeof(IO.Ably.MessageCount),
- "MemberName");
- if (((nullable1 == null)
- == false))
- {
- key = nullable1;
- }
- else
- {
- throw MsgPack.Serialization.SerializationExceptions.NewNullIsProhibited("MemberName");
- }
- if ((key == "data"))
- {
- System.Nullable nullable3 = default(System.Nullable);
- nullable3 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker,
- typeof(IO.Ably.MessageCount), "Double Data");
- if (nullable3.HasValue)
- {
- result.Data = nullable3.Value;
- }
- }
- else
- {
- if ((key == "count"))
- {
- System.Nullable nullable2 = default(System.Nullable);
- nullable2 = MsgPack.Serialization.UnpackHelpers.UnpackNullableInt64Value(unpacker,
- typeof(IO.Ably.MessageCount), "Double Count");
- if (nullable2.HasValue)
- {
- result.Count = nullable2.Value;
- }
- }
- else
- {
- unpacker.Skip();
- }
- }
- }
- return result;
- }
-
- private static T @__Conditional(bool condition, T whenTrue, T whenFalse)
- {
- if (condition) {
- return whenTrue;
- }
- else {
- return whenFalse;
- }
- }
- }
-#pragma warning restore SA1600 // Elements should be documented
-#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
-}
diff --git a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageSerializer.cs b/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageSerializer.cs
deleted file mode 100644
index 2d5e971d6..000000000
--- a/src/IO.Ably.Shared.MsgPack/CustomSerialisers/GeneratedSerializers/IO_Ably_MessageSerializer.cs
+++ /dev/null
@@ -1,294 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using System.Linq;
-using MsgPack;
-
-namespace IO.Ably.CustomSerialisers
-{
-#pragma warning disable SA1600 // Elements should be documented
-#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
-
- public class IO_Ably_MessageSerializer : MsgPack.Serialization.MessagePackSerializer
- {
-
- private MsgPack.Serialization.MessagePackSerializer _serializer0;
-
- private MsgPack.Serialization.MessagePackSerializer