summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Tizen.Messaging.Push/Tizen.Messaging.Push.csproj2
-rw-r--r--Tizen.Messaging.Push/Tizen.Messaging.Push/PushImpl.cs10
-rw-r--r--packaging/csapi-push.spec2
3 files changed, 8 insertions, 6 deletions
diff --git a/Tizen.Messaging.Push/Tizen.Messaging.Push.csproj b/Tizen.Messaging.Push/Tizen.Messaging.Push.csproj
index 263c6b7..54c1909 100644
--- a/Tizen.Messaging.Push/Tizen.Messaging.Push.csproj
+++ b/Tizen.Messaging.Push/Tizen.Messaging.Push.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <Version>1.0.5</Version>
+ <Version>1.0.6</Version>
<Authors>Samsung Electronics</Authors>
<Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>
<Description>Push API for Tizen .NET</Description>
diff --git a/Tizen.Messaging.Push/Tizen.Messaging.Push/PushImpl.cs b/Tizen.Messaging.Push/Tizen.Messaging.Push/PushImpl.cs
index 2c49734..c569405 100644
--- a/Tizen.Messaging.Push/Tizen.Messaging.Push/PushImpl.cs
+++ b/Tizen.Messaging.Push/Tizen.Messaging.Push/PushImpl.cs
@@ -26,6 +26,8 @@ namespace Tizen.Messaging.Push
{
private static readonly object _lock = new object();
private static PushImpl _instance;
+ private Interop.PushClient.VoidResultCallback registerResult;
+ private Interop.PushClient.VoidResultCallback unregisterResult;
internal static PushImpl Instance
{
@@ -157,9 +159,9 @@ namespace Tizen.Messaging.Push
{
Log.Info(Interop.PushClient.LogTag, "Register Called");
var task = new TaskCompletionSource<ServerResponse>();
- Interop.PushClient.VoidResultCallback registerResult = (Interop.PushClient.Result regResult, IntPtr msgPtr, IntPtr userData) =>
+ registerResult = (Interop.PushClient.Result regResult, IntPtr msgPtr, IntPtr userData) =>
{
- Log.Info(Interop.PushClient.LogTag, "Register Callback Called");
+ Log.Info(Interop.PushClient.LogTag, "Register Callback Called with " + regResult);
string msg = "";
if (msgPtr != IntPtr.Zero)
{
@@ -186,7 +188,7 @@ namespace Tizen.Messaging.Push
internal async Task<ServerResponse> PushServerUnregister()
{
var task = new TaskCompletionSource<ServerResponse>();
- Interop.PushClient.VoidResultCallback registerResult = (Interop.PushClient.Result regResult, IntPtr msgPtr, IntPtr userData) =>
+ unregisterResult = (Interop.PushClient.Result regResult, IntPtr msgPtr, IntPtr userData) =>
{
Log.Info(Interop.PushClient.LogTag, "Unregister Callback Called");
string msg = "";
@@ -202,7 +204,7 @@ namespace Tizen.Messaging.Push
Log.Error(Interop.PushClient.LogTag, "Unable to set the Result for Unregister");
}
};
- Interop.PushClient.ServiceError result = Interop.PushClient.ServiceDeregister(_connection, registerResult, IntPtr.Zero);
+ Interop.PushClient.ServiceError result = Interop.PushClient.ServiceDeregister(_connection, unregisterResult, IntPtr.Zero);
if (result != Interop.PushClient.ServiceError.None)
{
task.SetException(PushExceptionFactory.CreateResponseException(result));
diff --git a/packaging/csapi-push.spec b/packaging/csapi-push.spec
index 4542ebe..058d865 100644
--- a/packaging/csapi-push.spec
+++ b/packaging/csapi-push.spec
@@ -1,6 +1,6 @@
Name: csapi-push
Summary: Tizen Push API for C#
-Version: 1.0.5
+Version: 1.0.6
Release: 1
Group: Development/Libraries
License: Apache-2.0