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
[kubernetes-members] | |
localhost ansible_connection=local | |
cat: playbook.: No such file or directory | |
[root@k8s-node-150-1 ~]# cat inventory.ini playbook. | |
playbook.retry playbook.yaml | |
[root@k8s-node-150-1 ~]# cat inventory.ini playbook.yaml | |
[kubernetes-members] | |
localhost ansible_connection=local | |
- hosts: kubernetes-members | |
tasks: |
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
internal class ConfigurableLoggerFiltering : IFilterLoggerSettings | |
{ | |
private CancellationTokenSource cts; | |
private IChangeToken token; | |
private List<(string category, LogLevel level)> levels = new List<(string category, LogLevel level)>(); | |
public ConfigurableLoggerFiltering() | |
{ | |
this.Reload(); | |
} |
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
public string SendSms(SmsMessage msg) | |
{ | |
var ss = new SendSMS(); | |
ss.setURL(this.hosts.Current); | |
ss.initialise(this.username, this.password); | |
// this.sourceAddress=38062493106 is set in the constructor. The number is inject from app config | |
var result = ss.sendSMS(msg.ToNumber, this.sourceAddress, msg.Message); | |
if (result < 0) | |
{ |
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
abstract class Task extends Handler implements Runnable{ | |
public abstract void executeTask(); | |
public Task(int beginMessage, int endMessage){ | |
} | |
public bool setRunning(){ | |
} | |
public void run(){ | |
if(this.getRunning()) |