Skip to content

Commit 16126dd

Browse files
mohitpubnubjakub-grzesiowskipubnub-release-bot
authored
CLEN-1936: Fix status category in no network condition (#213)
* Fix innacurate DateTime to Unix nanoseconds conversion * Improve DateTime/Unix conversion unit tests + add new one * fix: emit correct status category in no netrowk condition * PubNub SDK v6.19.7.0 release. --------- Co-authored-by: PUBNUB\jakub.grzesiowski <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
1 parent 4b04b78 commit 16126dd

File tree

8 files changed

+26
-17
lines changed

8 files changed

+26
-17
lines changed

.pubnub.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: c-sharp
2-
version: "6.19.6"
2+
version: "6.19.7"
33
schema: 1
44
scm: github.com/pubnub/c-sharp
55
changelog:
6+
- date: 2024-04-02
7+
version: v6.19.7
8+
changes:
9+
- type: bug
10+
text: "Resolved the issue where an incorrect network status was emitted when no internet connection was detected."
611
- date: 2024-03-28
712
version: v6.19.6
813
changes:
@@ -771,7 +776,7 @@ features:
771776
- QUERY-PARAM
772777
supported-platforms:
773778
-
774-
version: Pubnub 'C#' 6.19.6
779+
version: Pubnub 'C#' 6.19.7
775780
platforms:
776781
- Windows 10 and up
777782
- Windows Server 2008 and up
@@ -781,7 +786,7 @@ supported-platforms:
781786
- .Net Framework 4.5
782787
- .Net Framework 4.6.1+
783788
-
784-
version: PubnubPCL 'C#' 6.19.6
789+
version: PubnubPCL 'C#' 6.19.7
785790
platforms:
786791
- Xamarin.Android
787792
- Xamarin.iOS
@@ -801,7 +806,7 @@ supported-platforms:
801806
- .Net Core
802807
- .Net 6.0
803808
-
804-
version: PubnubUWP 'C#' 6.19.6
809+
version: PubnubUWP 'C#' 6.19.7
805810
platforms:
806811
- Windows Phone 10
807812
- Universal Windows Apps
@@ -825,7 +830,7 @@ sdks:
825830
distribution-type: source
826831
distribution-repository: GitHub
827832
package-name: Pubnub
828-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.6.0
833+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.7.0
829834
requires:
830835
-
831836
name: ".Net"
@@ -1108,7 +1113,7 @@ sdks:
11081113
distribution-type: source
11091114
distribution-repository: GitHub
11101115
package-name: PubNubPCL
1111-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.6.0
1116+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.7.0
11121117
requires:
11131118
-
11141119
name: ".Net Core"
@@ -1467,7 +1472,7 @@ sdks:
14671472
distribution-type: source
14681473
distribution-repository: GitHub
14691474
package-name: PubnubUWP
1470-
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.6.0
1475+
location: https://github.com/pubnub/c-sharp/releases/tag/v6.19.7.0
14711476
requires:
14721477
-
14731478
name: "Universal Windows Platform Development"

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v6.19.7 - April 02 2024
2+
-----------------------------
3+
- Fixed: resolved the issue where an incorrect network status was emitted when no internet connection was detected.
4+
15
v6.19.6 - March 28 2024
26
-----------------------------
37
- Fixed: fixes issue of inaccurate DateTime to TimeToken conversion in TranslateDateTimeToPubnubUnixNanoSeconds.

src/Api/PubnubApi/EndPoint/PubSub/SubscribeManager.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ protected void ReconnectNetworkCallback<T>(System.Object reconnectState)
12131213

12141214
if (netState.Channels != null && netState.Channels.Length > 0)
12151215
{
1216-
PNStatus status = new StatusBuilder(config.ContainsKey(PubnubInstance.InstanceId) ? config[PubnubInstance.InstanceId] : null, jsonLibrary).CreateStatusResponse<T>(netState.ResponseType, PNStatusCategory.PNReconnectedCategory, null, (int)System.Net.HttpStatusCode.NotFound, new PNException("Internet connection problem. Retrying connection"));
1216+
PNStatus status = new StatusBuilder(config.ContainsKey(PubnubInstance.InstanceId) ? config[PubnubInstance.InstanceId] : null, jsonLibrary).CreateStatusResponse<T>(netState.ResponseType, PNStatusCategory.PNNetworkIssuesCategory, null, (int)System.Net.HttpStatusCode.NotFound, new PNException("Internet connection problem. Retrying connection"));
12171217
if (netState.Channels != null && netState.Channels.Length > 0)
12181218
{
12191219
status.AffectedChannels.AddRange(netState.Channels.ToList());

src/Api/PubnubApi/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
[assembly: AssemblyProduct("Pubnub C# SDK")]
1212
[assembly: AssemblyCopyright("Copyright © 2021")]
1313
[assembly: AssemblyTrademark("")]
14-
[assembly: AssemblyVersion("6.19.6.0")]
15-
[assembly: AssemblyFileVersion("6.19.6.0")]
14+
[assembly: AssemblyVersion("6.19.7.0")]
15+
[assembly: AssemblyFileVersion("6.19.7.0")]
1616
// Setting ComVisible to false makes the types in this assembly not visible
1717
// to COM components. If you need to access a type in this assembly from
1818
// COM, set the ComVisible attribute to true on that type.

src/Api/PubnubApi/PubnubApi.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
<PropertyGroup>
1616
<PackageId>Pubnub</PackageId>
17-
<PackageVersion>6.19.6.0</PackageVersion>
17+
<PackageVersion>6.19.7.0</PackageVersion>
1818
<Title>PubNub C# .NET - Web Data Push API</Title>
1919
<Authors>Pandu Masabathula</Authors>
2020
<Owners>PubNub</Owners>
2121
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2222
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2323
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2424
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
25-
<PackageReleaseNotes>Fixes issue of inaccurate DateTime to TimeToken conversion in TranslateDateTimeToPubnubUnixNanoSeconds.</PackageReleaseNotes>
25+
<PackageReleaseNotes>Resolved the issue where an incorrect network status was emitted when no internet connection was detected.</PackageReleaseNotes>
2626
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
2727
<!--<Summary>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Summary>-->
2828
<Description>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Description>

src/Api/PubnubApiPCL/PubnubApiPCL.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
<PropertyGroup>
1717
<PackageId>PubnubPCL</PackageId>
18-
<PackageVersion>6.19.6.0</PackageVersion>
18+
<PackageVersion>6.19.7.0</PackageVersion>
1919
<Title>PubNub C# .NET - Web Data Push API</Title>
2020
<Authors>Pandu Masabathula</Authors>
2121
<Owners>PubNub</Owners>
2222
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2323
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2424
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2525
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
26-
<PackageReleaseNotes>Fixes issue of inaccurate DateTime to TimeToken conversion in TranslateDateTimeToPubnubUnixNanoSeconds.</PackageReleaseNotes>
26+
<PackageReleaseNotes>Resolved the issue where an incorrect network status was emitted when no internet connection was detected.</PackageReleaseNotes>
2727
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
2828
<!--<Summary>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Summary>-->
2929
<Description>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Description>

src/Api/PubnubApiUWP/PubnubApiUWP.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
<PropertyGroup>
1818
<PackageId>PubnubUWP</PackageId>
19-
<PackageVersion>6.19.6.0</PackageVersion>
19+
<PackageVersion>6.19.7.0</PackageVersion>
2020
<Title>PubNub C# .NET - Web Data Push API</Title>
2121
<Authors>Pandu Masabathula</Authors>
2222
<Owners>PubNub</Owners>
2323
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
2424
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
2525
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
2626
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
27-
<PackageReleaseNotes>Fixes issue of inaccurate DateTime to TimeToken conversion in TranslateDateTimeToPubnubUnixNanoSeconds.</PackageReleaseNotes>
27+
<PackageReleaseNotes>Resolved the issue where an incorrect network status was emitted when no internet connection was detected.</PackageReleaseNotes>
2828
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
2929
<!--<Summary>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Summary>-->
3030
<Description>PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously</Description>

src/Api/PubnubApiUnity/PubnubApiUnity.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<PropertyGroup>
1717
<PackageId>PubnubApiUnity</PackageId>
18-
<PackageVersion>6.19.6.0</PackageVersion>
18+
<PackageVersion>6.19.7.0</PackageVersion>
1919
<Title>PubNub C# .NET - Web Data Push API</Title>
2020
<Authors>Pandu Masabathula</Authors>
2121
<Owners>PubNub</Owners>

0 commit comments

Comments
 (0)