Ported progress from SPA and began scaffolding Identity UI.
Laid some groundwork in backend. Began customizing Identity UI.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
using System.IO;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Props.Services
|
||||
namespace Props.Services.Content
|
||||
{
|
||||
public class JsonContentManager<Page> : IContentManager<Page>
|
||||
public class ContentManager<Page> : IContentManager<Page>
|
||||
{
|
||||
private dynamic data;
|
||||
private readonly string directory;
|
||||
private readonly string fileName;
|
||||
|
||||
dynamic IContentManager<Page>.Content
|
||||
dynamic IContentManager<Page>.Json
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -18,7 +18,7 @@ namespace Props.Services
|
||||
}
|
||||
}
|
||||
|
||||
public JsonContentManager(string directory = "Content")
|
||||
public ContentManager(string directory = "content")
|
||||
{
|
||||
this.directory = directory;
|
||||
this.fileName = typeof(Page).Name.Replace("Model", "") + ".json";
|
@@ -1,7 +1,7 @@
|
||||
namespace Props.Services
|
||||
namespace Props.Services.Content
|
||||
{
|
||||
public interface IContentManager<out TModel>
|
||||
{
|
||||
dynamic Content { get; }
|
||||
dynamic Json { get; }
|
||||
}
|
||||
}
|
29
Props/Services/Modules/ShopAssemblyLoadContext.cs
Normal file
29
Props/Services/Modules/ShopAssemblyLoadContext.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Loader;
|
||||
using Microsoft.Extensions.DependencyModel;
|
||||
|
||||
namespace Props.Services.Modules
|
||||
{
|
||||
internal class ShopAssemblyLoadContext : AssemblyLoadContext
|
||||
{
|
||||
private AssemblyDependencyResolver resolver;
|
||||
|
||||
public ShopAssemblyLoadContext(string path)
|
||||
{
|
||||
resolver = new AssemblyDependencyResolver(path);
|
||||
}
|
||||
|
||||
protected override Assembly Load(AssemblyName assemblyName)
|
||||
{
|
||||
string assemblyPath = resolver.ResolveAssemblyToPath(assemblyName);
|
||||
return assemblyPath != null ? LoadFromAssemblyPath(assemblyPath) : null;
|
||||
}
|
||||
|
||||
protected override IntPtr LoadUnmanagedDll(string unmanagedDllName)
|
||||
{
|
||||
string libPath = resolver.ResolveUnmanagedDllToPath(unmanagedDllName);
|
||||
return libPath != null ? LoadUnmanagedDllFromPath(libPath) : IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user