Skip to content

Commit bc09f87

Browse files
committed
Adjust to nullable annotations of ContextBag
1 parent c6005e4 commit bc09f87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NServiceBus.Storage.MongoDB/SynchronizedStorage/StorageSession.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ public async Task AbortTransaction(CancellationToken cancellationToken = default
112112
}
113113
}
114114

115-
public void StoreVersion<T>(int version) => contextBag.Set(typeof(T).FullName, version);
115+
public void StoreVersion<T>(int version) => contextBag.Set(typeof(T).FullName!, version);
116116

117-
public int RetrieveVersion(Type type) => contextBag.Get<int>(type.FullName);
117+
public int RetrieveVersion(Type type) => contextBag.Get<int>(type.FullName!);
118118

119119
public Task CommitTransaction(CancellationToken cancellationToken = default)
120120
{

0 commit comments

Comments
 (0)