@@ -181,7 +181,8 @@ public class QueryConfiguration
181
181
/// <summary>
182
182
/// The default serializer used when not type override matching is found
183
183
/// </summary>
184
- public string DefaultSerializer { get ; }
184
+ [ Obsolete ( message : "This property will always return null" ) ]
185
+ public string DefaultSerializer => null ;
185
186
186
187
/// <summary>
187
188
/// Uses the CommandBehavior.SequentialAccess when creating the command, providing a performance improvement for reading large BLOBS.
@@ -220,7 +221,7 @@ public QueryConfiguration(
220
221
string orderingColumnName ,
221
222
string serializerIdColumnName ,
222
223
TimeSpan timeout ,
223
- string defaultSerializer ,
224
+ string defaultSerializer , // This is being ignored now
224
225
bool useSequentialAccess )
225
226
{
226
227
SchemaName = schemaName ;
@@ -235,7 +236,6 @@ public QueryConfiguration(
235
236
Timeout = timeout ;
236
237
TagsColumnName = tagsColumnName ;
237
238
OrderingColumnName = orderingColumnName ;
238
- DefaultSerializer = defaultSerializer ;
239
239
SerializerIdColumnName = serializerIdColumnName ;
240
240
UseSequentialAccess = useSequentialAccess ;
241
241
}
@@ -780,7 +780,7 @@ protected DbCommand GetCommand(DbConnection connection, string sql)
780
780
protected virtual void WriteEvent ( DbCommand command , IPersistentRepresentation e , IImmutableSet < string > tags )
781
781
{
782
782
783
- var serializer = Serialization . FindSerializerForType ( e . Payload . GetType ( ) , Configuration . DefaultSerializer ) ;
783
+ var serializer = Serialization . FindSerializerForType ( e . Payload . GetType ( ) ) ;
784
784
785
785
// TODO: hack. Replace when https://github.com/akkadotnet/akka.net/issues/3811
786
786
var ( binary , manifest ) = Akka . Serialization . Serialization . WithTransport ( Serialization . System , ( e . Payload , serializer ) , ( state ) =>
@@ -846,7 +846,7 @@ protected virtual IPersistentRepresentation ReadEvent(DbDataReader reader)
846
846
{
847
847
// Support old writes that did not set the serializer id
848
848
var type = Type . GetType ( manifest , true ) ;
849
- var deserializer = Serialization . FindSerializerForType ( type , Configuration . DefaultSerializer ) ;
849
+ var deserializer = Serialization . FindSerializerForType ( type ) ;
850
850
// TODO: hack. Replace when https://github.com/akkadotnet/akka.net/issues/3811
851
851
deserialized = Akka . Serialization . Serialization . WithTransport (
852
852
Serialization . System , ( deserializer , ( byte [ ] ) payload , type ) ,
0 commit comments