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
using System.Text.RegularExpressions; | |
using Microsoft.SemanticKernel; | |
using Microsoft.SemanticKernel.Orchestration; | |
using Microsoft.SemanticKernel.SkillDefinition; | |
using NCalc; | |
namespace Experiments; | |
// usage : |
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
$NumberOfLogicalProcessors = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors | |
ForEach ($core in 1..$NumberOfLogicalProcessors){ | |
start-job -ScriptBlock{ | |
$result = 1; | |
foreach ($loopnumber in 1..2147483647){ | |
$result=1; | |
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
//To use this class call Log4NetBlobConfigure.ConfigureAndWatch(); in your Application.OnStart() | |
public class Log4NetBlobConfigure | |
{ | |
private static string _lastEtag; | |
private static DateTimeOffset? _lastModified; | |
private const string ContainerName = "config"; | |
private const string BlobUrl = "log4net.config"; | |
private static readonly object LockInstance = new object(); |