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
<Event | |
xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> | |
<System> | |
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/> | |
<EventID>0</EventID> | |
<Version>1</Version> | |
<Level>3</Level> | |
<Opcode>16</Opcode> | |
<Keywords>0x100</Keywords> | |
<TimeCreated SystemTime="2018-01-11T11:34:06.803Z"/> |
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
# Example of usage: | |
# Update-Certificates -domainNameMatchPattern "mycompany.com" -variableNameForCertificateToUse "CurrentMyCompanyDotComCertificate" | |
function Write-Info ($message) { | |
Write-Host "Info:" $message | |
} | |
function AssignCertificate([string] $friendlyName, [string] $hostName, [int] $port) { | |
$matchingCertificates = (Get-ChildItem cert:\localmachine\my) | Where-Object {$_.FriendlyName -eq $friendlyName} | |
$matchCount = ($matchingCertificates | Measure-Object).Count |
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
[TestMethod] | |
public void GetCustomerById() | |
{ | |
// Arrange | |
const int CustomerId = 5; | |
var repository = new CustomerRepository(); | |
// Act | |
Customer customer = repository.GetCustomerById(CustomerId); |
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 void $Method$_Given$Context$_Should$ExpectedBehaviour$() |
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
<cruisecontrol xmlns="http://thoughtworks.org/ccnet/1/5"> | |
<project name="foo"> | |
<webURL>http://localhost/ccnet</webURL> | |
<modificationDelaySeconds>10</modificationDelaySeconds> |
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
</msbuild> | |
2: <exec> | |
3: <executable>powershell</executable> | |
4: <buildArgs>-Command "Get-ChildItem -Path 'D:\SomeDir\Work' -Recurse -Include MyCompany*.dll -Exclude *.Test*.dll,*Generated.dll | sort -Property Name -Unique | sort -Property FullName | foreach {$_.FullName} | Out-File -FilePath 'D:\SomeDir\Artifact\AssembliesForCodeAnalysis.txt' -Width 255"</buildArgs> | |
5: </exec> | |
6: <gendarme> | |
7: <executable>C:\Program Files (x86)\Gendarme\gendarme.exe</executable> | |
8: <assemblyListFile>D:\SomeDir\Artifact\AssembliesForCodeAnalysis.txt</assemblyListFile> | |
9: <baseDirectory>D:\SomeDir\Work</baseDirectory> | |
10: <limit>2000</limit> |
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
WinRM set winrm/config/Winrs @{MaxMemoryPerShellMB = “1000”} |
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 class NServiceBusConfigurator : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization | |
{ | |
public void Init() | |
{ | |
Configure.Instance.CustomiseRavenPersistence(ConfigureRavenStore); | |
} | |
private static void ConfigureRavenStore(Raven.Client.IDocumentStore store) | |
{ | |
store.JsonRequestFactory.ConfigureRequest += (sender, args) => |
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 class GlobalErrorHandler : IWantToRunWhenBusStartsAndStops | |
{ | |
private readonly ILogger _logger; | |
private readonly BusNotifications _busNotifications; | |
readonly List<IDisposable> _notificationSubscriptions = new List<IDisposable>(); | |
public GlobalErrorHandler(ILogger logger, BusNotifications busNotifications) | |
{ | |
_logger = logger; | |
_busNotifications = busNotifications; |
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
Property(x => x.Version).IsRequired() | |
.IsConcurrencyToken() | |
.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed); |