* Abstract HttpContext with IWebContext. * Move AspNetCore dependant code to isolated classes. * Downgrade VAR.WebFormsCore to netstandard2.0.
26 lines
809 B
C#
26 lines
809 B
C#
using System.Collections.Generic;
|
|
using VAR.WebFormsCore.Code;
|
|
|
|
namespace VAR.WebFormsCore.TestWebApp;
|
|
|
|
public class TestWebAppGlobalConfig : IGlobalConfig
|
|
{
|
|
public string Title => "TestWebApp";
|
|
public string TitleSeparator => " :: ";
|
|
public string Author => "XXX";
|
|
public string Copyright => "Copyright (c) 2022 by XXX, All Right Reserved";
|
|
public string DefaultHandler => nameof(FrmDefault);
|
|
public string LoginHandler => nameof(FrmDefault);
|
|
|
|
public List<string> AllowedExtensions { get; } = new()
|
|
{ ".png", ".jpg", ".jpeg", ".gif", ".ico", ".wav", ".mp3", ".ogg", ".mp4", ".webm", ".webp", ".mkv", ".avi" };
|
|
|
|
public bool IsUserAuthenticated(IWebContext context)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public void UserDeauthenticate(IWebContext context)
|
|
{
|
|
}
|
|
} |