-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
194 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using SBMI = Sucrose.Backgroundog.Manage.Internal; | ||
using SMMI = Sucrose.Manager.Manage.Internal; | ||
using SMMM = Sucrose.Manager.Manage.Manager; | ||
using SSSHL = Sucrose.Shared.Space.Helper.Live; | ||
|
||
namespace Sucrose.Backgroundog.Helper | ||
{ | ||
internal static class Counter | ||
{ | ||
public static void Start() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using SBMI = Sucrose.Backgroundog.Manage.Internal; | ||
using SMMI = Sucrose.Manager.Manage.Internal; | ||
using SMMM = Sucrose.Manager.Manage.Manager; | ||
using SSSHL = Sucrose.Shared.Space.Helper.Live; | ||
using SBHC = Sucrose.Backgroundog.Helper.Counter; | ||
using SBHP = Sucrose.Backgroundog.Helper.Performance; | ||
|
||
namespace Sucrose.Backgroundog.Helper | ||
{ | ||
internal static class Initialize | ||
{ | ||
public static void Start() | ||
{ | ||
SBMI.InitializeTimer.Tick += new EventHandler(InitializeTimer_Tick); | ||
SBMI.InitializeTimer.Interval = new TimeSpan(0, 0, 1); | ||
SBMI.InitializeTimer.Start(); | ||
} | ||
|
||
public static void Stop() | ||
{ | ||
SBMI.InitializeTimer.Stop(); | ||
} | ||
|
||
private static void InitializeTimer_Tick(object sender, EventArgs e) | ||
{ | ||
//Libredeki cpu, ram, net bilgileri değişkene atılacak | ||
SBHC.Start(); | ||
|
||
if (SSSHL.Run()) | ||
{ | ||
//Performans şartları kontrol edilecek... | ||
SBHP.Start(); | ||
} | ||
else if (SBMI.Condition) | ||
{ | ||
//Performans şartları sağlanıp live motoru kapatıldıysa veya durdurulduysa | ||
//Live motoruna gRPC (Live.json) ile durdur mesajı gönderilir | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using SBMI = Sucrose.Backgroundog.Manage.Internal; | ||
using SMMI = Sucrose.Manager.Manage.Internal; | ||
using SMMM = Sucrose.Manager.Manage.Manager; | ||
using SSSHL = Sucrose.Shared.Space.Helper.Live; | ||
|
||
namespace Sucrose.Backgroundog.Helper | ||
{ | ||
internal static class Performance | ||
{ | ||
public static void Start() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
namespace Sucrose.Backgroundog.Manage | ||
using System.Windows.Threading; | ||
|
||
namespace Sucrose.Backgroundog.Manage | ||
{ | ||
internal static class Internal | ||
{ | ||
public static bool Exit = true; | ||
|
||
public static bool State = true; | ||
|
||
public static bool Condition = false; | ||
|
||
public static DispatcherTimer InitializeTimer = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.