-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6209 from signalco-io/feat/cloud/keep-warm-functions
feat(cloud): Added keep warm functions for all channels and public APIs
- Loading branch information
Showing
19 changed files
with
145 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Api.Public.RemoteBrowser/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Api.Public.RemoteBrowser; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Api.Public/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Api.Public.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.GitHubApp/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.GitHubApp.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.PhilipsHue/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.PhilipsHue.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.Samsung/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.Samsung.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.Slack/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.Slack.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.Station/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.Station.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.Zigbee2Mqtt/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.Zigbee2Mqtt.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
cloud/src/Signalco.Channel.iRobot/Functions/KeepWarmFunctions.cs
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 System; | ||
using Microsoft.Azure.Functions.Worker; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Signalco.Channel.iRobot.Functions; | ||
|
||
public class KeepWarmFunctions | ||
{ | ||
[Function("KeepWarm")] | ||
public void Run([TimerTrigger("0 */3 * * * *")] TimerInfo myTimer, FunctionContext context) | ||
{ | ||
var logger = context.GetLogger<KeepWarmFunctions>(); | ||
logger.LogInformation("C# Timer trigger function executed at: {0}", DateTime.Now); | ||
} | ||
} |
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