|
@@ -8,7 +8,7 @@ public class ClientCaller : IClientProvider
|
|
|
{
|
|
|
if (string.IsNullOrEmpty(name))
|
|
|
return Task.FromResult(false);
|
|
|
- if (ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
+ if (!ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
try
|
|
@@ -27,7 +27,7 @@ public class ClientCaller : IClientProvider
|
|
|
if (string.IsNullOrEmpty(name))
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
- if (ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
+ if (!ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
try
|
|
@@ -65,7 +65,7 @@ public class ClientCaller : IClientProvider
|
|
|
if (string.IsNullOrEmpty(name))
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
- if (ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
+ if (!ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
try
|
|
@@ -84,7 +84,7 @@ public class ClientCaller : IClientProvider
|
|
|
if (string.IsNullOrEmpty(name))
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
- if (ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
+ if (!ClientManager.DeviceClients.TryGetValue(guid, out ISingleClientProxy? client) || client is null)
|
|
|
return Task.FromResult(false);
|
|
|
|
|
|
try
|
|
@@ -130,6 +130,6 @@ public class ClientCaller : IClientProvider
|
|
|
|
|
|
Task<bool> IClientProvider.UpdateDeviceInfo(Guid guid, DeviceInfo deviceInfo)
|
|
|
{
|
|
|
- return this.SendAsync(guid, "UpdateDeviceInfo", deviceInfo);
|
|
|
+ return this.SendAsync(guid, "UpdateDeviceInfo", guid, deviceInfo);
|
|
|
}
|
|
|
}
|