Skip to content

Commit

Permalink
Fix Timer reference conflict in net6.0 (#154)
Browse files Browse the repository at this point in the history
* Fix Timer reference conflict for net6.0
  • Loading branch information
budgetpreneur authored Aug 22, 2022
1 parent d2f13c2 commit f71e959
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
19 changes: 12 additions & 7 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: c-sharp
version: "6.8.0"
version: "6.9.0"
schema: 1
scm: github.com/pubnub/c-sharp
changelog:
- date: 2022-08-22
version: v6.9.0
changes:
- type: bug
text: "Fix Timer reference conflict in net6.0."
- date: 2022-08-10
version: v6.8.0
changes:
Expand Down Expand Up @@ -670,7 +675,7 @@ features:
- QUERY-PARAM
supported-platforms:
-
version: Pubnub 'C#' 6.8.0
version: Pubnub 'C#' 6.9.0
platforms:
- Windows 10 and up
- Windows Server 2008 and up
Expand All @@ -680,7 +685,7 @@ supported-platforms:
- .Net Framework 4.5
- .Net Framework 4.6.1+
-
version: PubnubPCL 'C#' 6.8.0
version: PubnubPCL 'C#' 6.9.0
platforms:
- Xamarin.Android
- Xamarin.iOS
Expand All @@ -700,7 +705,7 @@ supported-platforms:
- .Net Core
- .Net 6.0
-
version: PubnubUWP 'C#' 6.8.0
version: PubnubUWP 'C#' 6.9.0
platforms:
- Windows Phone 10
- Universal Windows Apps
Expand All @@ -724,7 +729,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: Pubnub
location: https://github.com/pubnub/c-sharp/releases/tag/v6.8.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v6.9.0.0
requires:
-
name: ".Net"
Expand Down Expand Up @@ -1007,7 +1012,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: PubNubPCL
location: https://github.com/pubnub/c-sharp/releases/tag/v6.8.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v6.9.0.0
requires:
-
name: ".Net Core"
Expand Down Expand Up @@ -1366,7 +1371,7 @@ sdks:
distribution-type: source
distribution-repository: GitHub
package-name: PubnubUWP
location: https://github.com/pubnub/c-sharp/releases/tag/v6.8.0.0
location: https://github.com/pubnub/c-sharp/releases/tag/v6.9.0.0
requires:
-
name: "Universal Windows Platform Development"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v6.9.0 - August 22 2022
-----------------------------
- Fixed: fix Timer reference conflict in net6.0.

v6.8.0 - August 10 2022
-----------------------------
- Fixed: fixed Destroy() method when multiple Pubnub instances were in use.
Expand Down
4 changes: 2 additions & 2 deletions src/Api/PubnubApi/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
[assembly: AssemblyProduct("Pubnub C# SDK")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyVersion("6.8.0.0")]
[assembly: AssemblyFileVersion("6.8.0.0")]
[assembly: AssemblyVersion("6.9.0.0")]
[assembly: AssemblyFileVersion("6.9.0.0")]
// 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.
Expand Down
4 changes: 2 additions & 2 deletions src/Api/PubnubApi/PubnubApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@

<PropertyGroup>
<PackageId>Pubnub</PackageId>
<PackageVersion>6.8.0.0</PackageVersion>
<PackageVersion>6.9.0.0</PackageVersion>
<Title>PubNub C# .NET - Web Data Push API</Title>
<Authors>Pandu Masabathula</Authors>
<Owners>PubNub</Owners>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
<PackageReleaseNotes>Fixed Destroy() method when multiple Pubnub instances were in use.</PackageReleaseNotes>
<PackageReleaseNotes>Fix Timer reference conflict in net6.0.</PackageReleaseNotes>
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
<!--<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>-->
<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>
Expand Down
2 changes: 1 addition & 1 deletion src/Api/PubnubApi/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace System.Threading
{
#if NETSTANDARD10 || NETSTANDARD11 || NET60
#if NETSTANDARD10 || NETSTANDARD11
public delegate void TimerCallback(object state);

public sealed class Timer : CancellationTokenSource, IDisposable
Expand Down
7 changes: 5 additions & 2 deletions src/Api/PubnubApiPCL/PubnubApiPCL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

<PropertyGroup>
<PackageId>PubnubPCL</PackageId>
<PackageVersion>6.8.0.0</PackageVersion>
<PackageVersion>6.9.0.0</PackageVersion>
<Title>PubNub C# .NET - Web Data Push API</Title>
<Authors>Pandu Masabathula</Authors>
<Owners>PubNub</Owners>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
<PackageReleaseNotes>Fixed Destroy() method when multiple Pubnub instances were in use.</PackageReleaseNotes>
<PackageReleaseNotes>Fix Timer reference conflict in net6.0.</PackageReleaseNotes>
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
<!--<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>-->
<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>
Expand Down Expand Up @@ -813,6 +813,9 @@
<PackageReference Include="System.Threading.ThreadPool" Version="4.0.10">
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Threading.Timer" Version="4.3.0">
<PrivateAssets>None</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Threading.Thread" Version="4.0.0">
<PrivateAssets>None</PrivateAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/Api/PubnubApiUWP/PubnubApiUWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@

<PropertyGroup>
<PackageId>PubnubUWP</PackageId>
<PackageVersion>6.8.0.0</PackageVersion>
<PackageVersion>6.9.0.0</PackageVersion>
<Title>PubNub C# .NET - Web Data Push API</Title>
<Authors>Pandu Masabathula</Authors>
<Owners>PubNub</Owners>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIconUrl>http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png</PackageIconUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryUrl>https://github.com/pubnub/c-sharp/</RepositoryUrl>
<PackageReleaseNotes>Fixed Destroy() method when multiple Pubnub instances were in use.</PackageReleaseNotes>
<PackageReleaseNotes>Fix Timer reference conflict in net6.0.</PackageReleaseNotes>
<PackageTags>Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing</PackageTags>
<!--<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>-->
<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>
Expand Down

0 comments on commit f71e959

Please sign in to comment.