Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 691e45b

Browse files
authoredMar 11, 2024
Add .NET 8.0 target (#3494)
1 parent 0c3c705 commit 691e45b

File tree

74 files changed

+277
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+277
-79
lines changed
 

‎src/NHibernate/Bytecode/NotInstrumentedException.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public NotInstrumentedException(string message) : base(message)
2525
}
2626

2727
/// <inheritdoc />
28-
protected NotInstrumentedException(SerializationInfo info, StreamingContext context)
29-
: base(info, context) {}
28+
// Since v5.6
29+
[Obsolete("This API supports obsolete formatter-based serialization and will be removed in a future version")]
30+
protected NotInstrumentedException(SerializationInfo info, StreamingContext context) : base(info, context) {}
3031
}
3132
}

‎src/NHibernate/Bytecode/UnableToLoadProxyFactoryFactoryException.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ public UnableToLoadProxyFactoryFactoryException(string typeName, Exception inner
1313
TypeName = typeName;
1414
}
1515

16-
protected UnableToLoadProxyFactoryFactoryException(SerializationInfo info, StreamingContext context)
17-
: base(info, context)
16+
// Since v5.6
17+
[Obsolete("This API supports obsolete formatter-based serialization and will be removed in a future version")]
18+
protected UnableToLoadProxyFactoryFactoryException(SerializationInfo info, StreamingContext context) : base(info, context)
1819
{
1920
foreach (var entry in info)
2021
{
@@ -25,12 +26,16 @@ protected UnableToLoadProxyFactoryFactoryException(SerializationInfo info, Strea
2526
}
2627
}
2728

29+
#pragma warning disable CS0809
30+
// Since v5.6
31+
[Obsolete("This API supports obsolete formatter-based serialization and will be removed in a future version")]
2832
[SecurityCritical]
2933
public override void GetObjectData(SerializationInfo info, StreamingContext context)
3034
{
3135
base.GetObjectData(info, context);
3236
info.AddValue("TypeName", TypeName);
3337
}
38+
#pragma warning restore CS0809
3439

3540
public string TypeName { get; }
3641
public override string Message

‎src/NHibernate/Cache/CacheException.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ public CacheException(string message, Exception innerException) : base(message,
6060
/// <param name="context">
6161
/// The <see cref="StreamingContext"/> that contains contextual information about the source or destination.
6262
/// </param>
63+
// Since v5.6
64+
[Obsolete("This API supports obsolete formatter-based serialization and will be removed in a future version")]
6365
protected CacheException(SerializationInfo info, StreamingContext context) : base(info, context)
6466
{
6567
}
6668
}
67-
}
69+
}
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.