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
import {Component, bootstrap, Input, View} from 'angular2/angular2'; | |
@Component({ | |
selector: 'hello-message', | |
inputs: ['message'], | |
template: 'Hello, {{message}}' | |
}) | |
class HelloMessage { | |
@Input() message: string; | |
} |
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
import {Component, bootstrap} from 'angular2/angular2'; | |
@Component({ | |
selector: 'my-app', | |
template: '<h1>Hello World</h1>' | |
}) | |
class AppComponent { } | |
bootstrap(AppComponent); |
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
[Test] | |
public void Switch_should_dispose_old_subscriptions() | |
{ | |
//ARRANGE | |
var disposed = new List<int>(); | |
var switchedObservable = Observable.Range(1, 2) | |
.Select(i => Observable.Create<Unit>(o => Disposable.Create(() => disposed.Add(i)))) | |
.Switch(); | |
//ACT |
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
private T FindWithRetry<T>(Func<T> find, string description) where T : class | |
{ | |
int numWaits = 0; | |
Console.WriteLine("Searching for " + description); | |
while(numWaits < 200) | |
{ | |
T result = find(); | |
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
#requires -version 2 | |
<# #> | |
param( | |
[Parameter(Mandatory = $true)] | |
[string] $sourceRoot, | |
[Parameter(Mandatory = $true)] | |
[string] $versionNumber | |
) |