Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public class GXSessionServiceFactory
private static readonly IGXLogger log = GXLoggerFactory.GetLogger<GXSessionServiceFactory>();

static ISessionService sessionService;
static string REDIS = "REDIS";
static string DATABASE = "DATABASE";
public static ISessionService GetProvider()
{
if (sessionService != null)
Expand All @@ -35,9 +33,9 @@ public static ISessionService GetProvider()
//Compatibility
if (string.IsNullOrEmpty(className))
{
if (providerService.Name.Equals(REDIS, StringComparison.OrdinalIgnoreCase))
if (providerService.Name.Equals(GXServices.REDIS_CACHE_SERVICE, StringComparison.OrdinalIgnoreCase))
type = typeof(GxRedisSession);
else if (providerService.Name.Equals(DATABASE, StringComparison.OrdinalIgnoreCase))
else if (providerService.Name.Equals(GXServices.DATABASE_CACHE_SERVICE, StringComparison.OrdinalIgnoreCase))
type = typeof(GxDatabaseSession);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="..\..\..\..\dotnetframework\Providers\Cache\GxRedis\GxRedis.cs" Link="GxRedis.cs" />
<Compile Include="..\..\..\..\dotnetframework\Providers\Cache\GxRedis\GxRedis.cs" Link="GxRedis.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="StackExchange.Redis" Version="2.9.17" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class GXServices
public static string STORAGE_SERVICE = "Storage";
public static string STORAGE_APISERVICE = "StorageAPI";
public static string CACHE_SERVICE = "Cache";
public static string REDIS_CACHE_SERVICE = "Redis";
public static string DATABASE_CACHE_SERVICE = "DATABASE";
public static string DATA_ACCESS_SERVICE = "DataAccess";
public static string SESSION_SERVICE = "Session";
public static string WEBNOTIFICATIONS_SERVICE = "WebNotifications";
Expand Down Expand Up @@ -47,6 +49,7 @@ public static GXServices Instance
}
set { }
}

public void AddService(string name, GXService service)
{
services[name] = service;
Expand Down
Loading
Loading