Skip to content

Commit 0d77ab8

Browse files
author
Pavan
committed
Fix merge conflicts
2 parents c33c548 + 63a28a0 commit 0d77ab8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/service-fabric/service-fabric-reliable-services-exception-serialization.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ms.date: 03/30/2022
66
ms.custom: devx-track-csharp
77
---
88
# Overview
9-
BinaryFormatter based serialization is not secure and Microsoft strongly recommends not to use BinaryFormatter for data processing. More details on the security implications can be found [here](https://docs.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide).
10-
Service Fabric had been using BinaryFormatter for serializing Exceptions. Starting ServiceFabric v9.0, [Data Contract based serialization](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.datacontractserializer?view=net-6.0) is made available as an opt-in feature. It is strongly recommended to opt for DataContract remoting exception serializationby following the below mentioned steps.
9+
BinaryFormatter based serialization is not secure and Microsoft strongly recommends not to use BinaryFormatter for data processing. More details on the security implications can be found [here](https://docs.microsoft.com/dotnet/standard/serialization/binaryformatter-security-guide).
10+
Service Fabric had been using BinaryFormatter for serializing Exceptions. Starting ServiceFabric v9.0, [Data Contract based serialization](https://docs.microsoft.com/dotnet/api/system.runtime.serialization.datacontractserializer?view=net-6.0) for remoting exceptions is made available as an opt-in feature. It is strongly recommended to opt for DataContract remoting exception serializationby following the below mentioned steps.
1111

1212
Support for BinaryFormatter based remoting exception serialization will be deprecated in the future.
1313

@@ -80,7 +80,7 @@ protected override IEnumerable<ServiceReplicaListener> CreateServiceReplicaListe
8080

8181
If the original exception has multiple levels of inner exceptions, then you can control the number of levels of inner exceptions to be serialized by setting `FabricTransportRemotingListenerSettings.RemotingExceptionDepth`.
8282

83-
2. Enable DataContract remoting exception serialization on the **Client** by using `FabricTransportRemotingSettings.ExceptionSerializationTechnique` while creating the Client Factory
83+
2. Enable DataContract remoting exception serialization on the **Client** by using `FabricTransportRemotingSettings.ExceptionDeserializationTechnique` while creating the Client Factory
8484
- ServiceProxyFactory creation
8585
```csharp
8686
var serviceProxyFactory = new ServiceProxyFactory(
@@ -111,8 +111,8 @@ var actorProxyFactory = new ActorProxyFactory(
111111
3. DataContract remoting exception serialization converts Exception to Data Transfer Object(DTO) on the service side and the DTO is converted back to Exception on the client side. Users need to register `ExceptionConvertor` for converting desired exceptions to DTO objects and vice versa.
112112
Framework implements Convertors for the below list of the exceptions. If user service code depends on exceptions outside the below list for retry implementation, exception handling, etc., then user needs to implement and register convertors for such exceptions.
113113

114-
* All service fabric exceptions(derived from `FabricException`)
115-
* SystemExceptions
114+
* All service fabric exceptions(derived from `System.Fabric.FabricException`)
115+
* SystemExceptions(derived from `System.SystemException`)
116116
* System.AccessViolationException
117117
* System.AppDomainUnloadedException
118118
* System.ArgumentException

0 commit comments

Comments
 (0)