- Dynamic Composition
- Static Composition
- Validation
- Dirty Tracking
- Guard Close
Disable-UAC | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart | |
Set-TaskbarOptions -Dock Left | |
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan" | |
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring() | |
$regex = [regex]"{(.*?)}$" |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan" | |
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring() | |
$regex = [regex]"{(.*?)}$" | |
$newpowerVal = $regex.Match($guid).groups[1].value | |
powercfg -S "High performance" | |
Write-BoxstarterMessage "Setting Standby Timeout to Never" | |
powercfg -change -standby-timeout-ac 0 |
Disable-UAC | |
Update-ExecutionPolicy Unrestricted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Set-TaskbarOptions -Lock -Dock Left | |
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan" | |
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring() | |
$regex = [regex]"{(.*?)}$" |
public class WindowBehavior | |
{ | |
static readonly Type OwnerType = typeof (WindowBehavior); | |
public static readonly DependencyProperty HideCloseButtonProperty = | |
DependencyProperty.RegisterAttached("HideCloseButton", typeof (bool), | |
OwnerType, new FrameworkPropertyMetadata(false, | |
new PropertyChangedCallback(HideCloseButtonChangedCallback))); | |
[AttachedPropertyBrowsableForType(typeof (Window))] |
Install-Package AutoFixture.Xunit | |
Install-Package AutoFixture.AutoNSubstitute | |
Install-Package FluentAssertions | |
Install-Package xunit.runner.visualstudio -Prerelease -Version 0.99.9-build1021 |
context = context.AsNonChangeTrackingContext(); | |
return context | |
.AsQueryable<RecordedEvent>() | |
.Include(x => x.EventStreams) | |
.AsExpandable() | |
.Where(where) | |
.OrderBy(orderByField, ascending) | |
.Skip((pageNumber - 1)*recordsPerPage) | |
.Take(recordsPerPage) | |
.Select(x => new RecordedEventProjection |
public class describe_ioc_container | |
{ | |
It should_be_able_to_resolve_all_registered_components = () => | |
{ | |
var bootstrapper = new AppBootstrapper(false); | |
var host = (IDiagnosticsHost) bootstrapper.Container.Kernel.GetSubSystem(SubSystemConstants.DiagnosticsKey); | |
var diagnostics = host.GetDiagnostic<IPotentiallyMisconfiguredComponentsDiagnostic>(); | |
var handlers = diagnostics.Inspect(); |
var results = await new ProcessBuilder("some_command.exe") | |
.WithTimeout(TimeSpan.FromMinutes(5)) | |
.WithArguments("/blah foo") | |
.WithPath(@"C:\bin") | |
.ExecuteAsync(); | |
if(results.ExitCode == 0) | |
{ | |
Console.WriteLine("Output:"); | |
results.StandardOutput.ForEach(line => Console.WriteLine(line)); |