Runtime enum should be in Oqtane,Shared
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Oqtane.Models;
|
||||
|
||||
@ -19,6 +19,6 @@ namespace Oqtane.UI
|
||||
public string Action { get; set; }
|
||||
public bool EditMode { get; set; }
|
||||
public DateTime LastSyncDate { get; set; }
|
||||
public Runtime Runtime { get; set; }
|
||||
public Oqtane.Shared.Runtime Runtime { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,8 @@
|
||||
namespace Oqtane.UI
|
||||
using System;
|
||||
|
||||
namespace Oqtane.UI
|
||||
{
|
||||
[Obsolete("This enum is deprecated and will be removed in the upcoming major release, please use Oqtane.Shared.Runtime instead.")]
|
||||
public enum Runtime
|
||||
{
|
||||
Server,
|
||||
|
@ -560,8 +560,8 @@
|
||||
return pageresources;
|
||||
}
|
||||
|
||||
private Runtime GetRuntime()
|
||||
private Oqtane.Shared.Runtime GetRuntime()
|
||||
=> RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))
|
||||
? Runtime.WebAssembly
|
||||
: Runtime.Server;
|
||||
? Oqtane.Shared.Runtime.WebAssembly
|
||||
: Oqtane.Shared.Runtime.Server;
|
||||
}
|
Reference in New Issue
Block a user