aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-18 18:06:13 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-11-18 18:06:13 +0200
commitcd5006f765c65482033d671095f34453acfc416b (patch)
tree116d93c22a6354dfa4cbdcb4a74495252d7cf0ca /Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore
parentf28f81d8605c6fe4c2b1d64f19d96f8c9428c76e (diff)
downloadTango-cd5006f765c65482033d671095f34453acfc416b.tar.gz
Tango-cd5006f765c65482033d671095f34453acfc416b.zip
DataStore improvements.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore/DefaultDataStoreService.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore/DefaultDataStoreService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore/DefaultDataStoreService.cs
index 41fb21498..4d2e9c1df 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore/DefaultDataStoreService.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/DataStore/DefaultDataStoreService.cs
@@ -121,6 +121,7 @@ namespace Tango.PPC.Common.DataStore
[ExternalBridgeRequestHandlerMethod(typeof(RemoteDataStoreDeleteRequest), RequestHandlerLoggingMode.LogRequestName)]
public async Task OnRemoteDataStoreDeleteRequest(RemoteDataStoreDeleteRequest request, String token, ExternalBridgeReceiver receiver)
{
+ throw new InvalidOperationException("Deleting from the data store is not allowed.");
GetManager().GetCollection(request.Collection).Delete(request.Key);
await receiver.SendGenericResponse(new RemoteDataStoreDeleteResponse(), token);
}
@@ -128,6 +129,7 @@ namespace Tango.PPC.Common.DataStore
[ExternalBridgeRequestHandlerMethod(typeof(RemoteDataStoreDeleteAllRequest), RequestHandlerLoggingMode.LogRequestName)]
public async Task OnRemoteDataStoreDeleteAllRequest(RemoteDataStoreDeleteAllRequest request, String token, ExternalBridgeReceiver receiver)
{
+ throw new InvalidOperationException("Deleting from the data store is not allowed.");
GetManager().GetCollection(request.Collection).DeleteAll();
await receiver.SendGenericResponse(new RemoteDataStoreDeleteAllResponse(), token);
}