Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
27
Vendor/EmbedIO-3.5.2/Internal/DummyWebModuleContainer.cs
vendored
Normal file
27
Vendor/EmbedIO-3.5.2/Internal/DummyWebModuleContainer.cs
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Runtime.CompilerServices;
|
||||
using EmbedIO.Utilities;
|
||||
using Swan;
|
||||
|
||||
namespace EmbedIO.Internal
|
||||
{
|
||||
internal sealed class DummyWebModuleContainer : IWebModuleContainer
|
||||
{
|
||||
public static readonly IWebModuleContainer Instance = new DummyWebModuleContainer();
|
||||
|
||||
private DummyWebModuleContainer()
|
||||
{
|
||||
}
|
||||
|
||||
public IComponentCollection<IWebModule> Modules => throw UnexpectedCall();
|
||||
|
||||
public ConcurrentDictionary<object, object> SharedItems => throw UnexpectedCall();
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
private InternalErrorException UnexpectedCall([CallerMemberName] string member = "")
|
||||
=> SelfCheck.Failure($"Unexpected call to {nameof(DummyWebModuleContainer)}.{member}.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user