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
11:01:47.181403 git.c:328 trace: built-in: git 'pull' | |
11:01:47.181403 run-command.c:626 trace: run_command: 'fetch' '--update-head-ok' | |
11:01:47.228279 git.c:328 trace: built-in: git 'fetch' '--update-head-ok' | |
11:01:47.228279 run-command.c:626 trace: run_command: 'remote-https' 'origin' 'https://redacted.visualstudio.com/DefaultCollection/project/_git/repo' | |
11:01:47.259524 git.c:560 trace: exec: 'git-remote-https' 'origin' 'https://redacted.visualstudio.com/DefaultCollection/project/_git/repo' | |
11:01:47.259524 run-command.c:626 trace: run_command: 'git-remote-https' 'origin' 'https://redacted.visualstudio.com/DefaultCollection/project/_git/repo' | |
11:01:47.712687 run-command.c:626 trace: run_command: 'git credential-manager get' | |
11:01:47.760474 git.c:560 trace: exec: 'git-credential-manager' 'get' | |
11:01:47.760474 run-command.c:626 trace: run_command: 'git-credential-manager' 'get' | |
11:01:47.838646 ...\Common.cs:527 trace: [ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<ApplicationInsights xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings"> | |
<InstrumentationKey xdt:Transform="Replace">#{InstrumentationKey}</InstrumentationKey> | |
<TelemetryModules> | |
<Add Locator="Condition(@Type=Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector)"> | |
<AuthenticationApiKey xdt:Transform="Replace">#{AuthenticationApiKey}</AuthenticationApiKey> | |
</Add> | |
</TelemetryModules> | |
</ApplicationInsights> |
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 static class KeyValuePairExtensions | |
{ | |
public static void CopyTo<TKey>(this IEnumerable<KeyValuePair<TKey, string>> keyValuePairs, IDictionary<TKey, string> target) => CopyTo(keyValuePairs, target, (a, b) => $"{a},{b}"); | |
public static void CopyTo<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> keyValuePairs, IDictionary<TKey, TValue> target, Func<TValue, TValue, TValue> aggregator) | |
{ | |
foreach (var keyValuePair in keyValuePairs) | |
{ | |
var key = keyValuePair.Key; | |
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 static class SessionSettingsExtensions | |
{ | |
public static bool TryUseWeekdaySessionSettings(this SessionSettings sessionSettings) | |
{ | |
var allSessionIds = sessionSettings.GetSessions(); | |
var result = allSessionIds.Select(sessionId => TryUseWeekdaySessionSettings(sessionSettings, sessionId)).All(x => x); | |
Console.WriteLine(sessionSettings); | |
return result; | |
} |
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 sealed class DailyFileLog : ILog | |
{ | |
readonly DailyFileLogWriter _eventLog; | |
readonly DailyFileLogWriter _messageLog; | |
public DailyFileLog(FileLogWriterOptions eventLog, FileLogWriterOptions messageLog) | |
{ | |
_eventLog = new DailyFileLogWriter(eventLog); | |
_messageLog = new DailyFileLogWriter(messageLog); | |
} |
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 static class SingleProducer | |
{ | |
public static IObservable<T> Merge<T>(params IObservable<T>[] sequences) | |
{ | |
IDisposable SubscribeObserver(IObserver<T> observer) | |
{ | |
IDisposable SubscribeSequence(IObservable<T> sequence) => sequence.Subscribe(observer); | |
foreach (var sequence in sequences) |
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
/// <summary> | |
/// Returns the specified code when the CancellationToken is canceled | |
/// </summary> | |
public sealed class CancellationDelegatingHandler : DelegatingHandler | |
{ | |
readonly HttpStatusCode _canceledCode; | |
public CancellationDelegatingHandler(HttpStatusCode canceledCode = HttpStatusCode.Gone) | |
{ |
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 static class ServiceLocator | |
{ | |
static readonly TaskCompletionSource<IContainer> __container = new TaskCompletionSource<IContainer>(); | |
public static IContainer Instance { | |
get => __container.Task.Result; | |
set => __container.SetResult(value); | |
} |
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 TestProvider : LiteralBasedProvider | |
{ | |
public override void NotifyUser(string user, string password) | |
{ | |
Console.WriteLine($"NotifyUser {user} {password}"); | |
if (false) | |
throw new AccessException("Unauthorized user"); | |
} | |
} |
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 sealed class ReactiveStubObserver : IStubObserver | |
{ | |
readonly ISubject<Tuple<Type, Delegate>> _subject1; | |
readonly ISubject<Tuple<Type, Delegate, object>> _subject2; | |
readonly ISubject<Tuple<Type, Delegate, object, object>> _subject3; | |
readonly ISubject<Tuple<Type, Delegate, object, object, object>> _subject4; | |
readonly ISubject<Tuple<Type, Delegate, object[]>> _subject5; | |
public ReactiveStubObserver(IObserver<Tuple<Type, Delegate, object[]>> observer) : this(CreateSubject(observer)) |