Skip to content

Commit

Permalink
Make sure application info is logged
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Apr 9, 2020
1 parent 84545cd commit 7b5d0b5
Show file tree
Hide file tree
Showing 14 changed files with 504 additions and 457 deletions.
6 changes: 4 additions & 2 deletions exampleapps/apps/test2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ public class BatteryManager : NetDaemonApp
public string? HelloWorldSecret { get; set; }
public override async Task InitializeAsync()
{
var app = (GlobalApp)GetApp("global_app");
// Scheduler.RunEvery(5000, () => { var x = 0; var z = 4 / x; return Task.CompletedTask; });
// Entity("sun.sun").WhenStateChange(allChanges: true).Call((entityid, to, from) => throw new Exception("Test")).Execute();
// var app = (GlobalApp)GetApp("global_app");

Log($"The global app shows {app.SharedThing}");
// Log($"The global app shows {app.SharedThing}");
// int? test = null;
// bool testa = test.HasValue;

Expand Down
Loading

0 comments on commit 7b5d0b5

Please sign in to comment.