mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-12 17:22:26 -04:00
Updated server README
- Removed accidental of API's object files
This commit is contained in:
parent
22191ce648
commit
4b5e584eeb
18 changed files with 419 additions and 16737 deletions
|
@ -22,7 +22,8 @@ namespace FSO.Server.Domain
|
|||
|
||||
public List<ShardStatusItem> All
|
||||
{
|
||||
get{
|
||||
get
|
||||
{
|
||||
return _Shards;
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +32,7 @@ namespace FSO.Server.Domain
|
|||
{
|
||||
get
|
||||
{
|
||||
throw new Exception("CurrentShard not avaliable in server domain");
|
||||
throw new Exception("CurrentShard not available in server domain");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,9 +40,12 @@ namespace FSO.Server.Domain
|
|||
{
|
||||
Task.Delay(60000).ContinueWith(x =>
|
||||
{
|
||||
try{
|
||||
try
|
||||
{
|
||||
Poll();
|
||||
}catch(Exception ex){
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
}
|
||||
AutoUpdate();
|
||||
});
|
||||
|
@ -55,7 +59,7 @@ namespace FSO.Server.Domain
|
|||
private void Poll()
|
||||
{
|
||||
_LastPoll = DateTime.UtcNow;
|
||||
|
||||
|
||||
using (var db = _DbFactory.Get())
|
||||
{
|
||||
_Shards = db.Shards.All().Select(x => new ShardStatusItem()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue