SharedObjectShell bug fix

This commit is contained in:
2025-05-14 14:25:45 +03:00
parent 79483a8f1d
commit 4638692305
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -76,6 +76,7 @@ class Program
Console.WriteLine("Approaching detected");
factory.Register(new ClientBasedPrinter());
factory.Register(disposingPrinter);
DemoCheck.ClientBasedImplementation = true;
Console.WriteLine("Registered printer");
Thread.Sleep(100);
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>2.0.1</Version>
<Version>2.0.2</Version>
<LangVersion>9</LangVersion>
</PropertyGroup>
+1 -1
View File
@@ -83,7 +83,7 @@ namespace mROA.Implementation
}
private IInstanceRepository GetDefaultContextRepository() =>
(_identifier.OwnerId == EndPointContext.HostId
(_identifier.OwnerId == EndPointContext.OwnerId
? EndPointContext.RealRepository
: EndPointContext.RemoteRepository) ??
throw new NullReferenceException(