init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
Kreta.KretaServer/ServerUtil
37
Kreta.KretaServer/ServerUtil/KretaConnectionManager.cs
Normal file
37
Kreta.KretaServer/ServerUtil/KretaConnectionManager.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System.Collections.Generic;
|
||||
using Kreta.Framework;
|
||||
using Kreta.Framework.Session;
|
||||
using Kreta.KretaServer.Caching;
|
||||
|
||||
namespace Kreta.KretaServer.ServerUtil
|
||||
{
|
||||
public class KretaConnectionManager : ConnectionManager
|
||||
{
|
||||
private readonly ConnectionStringCache connectionStringCache = SDAServer.Instance.CacheManager.AquireCache<ConnectionStringCache>();
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
connectionStringCache.FillCache();
|
||||
}
|
||||
|
||||
public override IEnumerable<string> GetOsszesIntezmeny()
|
||||
{
|
||||
return connectionStringCache.GetOsszesIntezmeny();
|
||||
}
|
||||
|
||||
public override string GetIntezmenyConnectionString(string intezmenyAzonosito)
|
||||
{
|
||||
return connectionStringCache.GetIntezmenyConnectionString(intezmenyAzonosito);
|
||||
}
|
||||
|
||||
public override string GetSystemConnectionString(string intezmenyAzonosito)
|
||||
{
|
||||
return connectionStringCache.GetSystemConnectionString(intezmenyAzonosito);
|
||||
}
|
||||
|
||||
public override IEnumerable<string> GetSystemConnectionStrings()
|
||||
{
|
||||
return connectionStringCache.GetSystemConnectionStrings();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue