This file contains hidden or 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
namespace TestableGeoTrackerDemo.Test.ViewModel | |
{ | |
[TestClass] | |
public class TrackingViewModelTest : SilverlightTest | |
{ | |
private MockCompass _compass; | |
private MockGeoCoordinateWatcher _geoWatcher; | |
private TrackingViewModel _viewModel; | |
[TestInitialize] |
This file contains hidden or 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
// Maintains push notification channel | |
public class Pusher : IManagePushNotification | |
{ | |
public event EventHandler<PusherUriEventArgs> ChannelUriUpdated; | |
private const string ChannelName = "WordfeudChannel"; | |
private HttpNotificationChannel _pushChannel; | |
private bool _enabled; | |
public void Enable() |
This file contains hidden or 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 byte[] Get() | |
{ | |
byte[] data = null; | |
var manualResetEvent = new ManualResetEvent(false); | |
var timedOut = false; | |
var req = CreateGetHttpWebRequest(Url); | |
try | |
{ | |
if (Config.Debug) | |
LogRequest(req, null); |
This file contains hidden or 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var handlers = new MyHandlerList(); | |
handlers.Add(new ConcreteHandler()); | |
var myHandler = handlers.Get<Message>(); | |
} | |
private class MyHandlerList |
This file contains hidden or 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.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Windows; | |
using Posten.Pakkesporing.Lib.Model; | |
using Posten.Pakkesporing.Lib.Services; | |
namespace Posten.Pakkesporing.Lib.ViewModels |
This file contains hidden or 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
var buster = require("buster"); | |
function Bowling() { | |
this.pins = []; | |
this.points = 0; | |
} | |
Bowling.prototype.roll = function (pins) { | |
this.pins.push(pins); | |
}; | |
Bowling.prototype.isSpare = function (i) { |
This file contains hidden or 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
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">Object reference not set to an instance of an object.</faultstring><detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07/System.ServiceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException i:nil="true"/><Message>Object reference not set to an instance of an object.</Message><StackTrace> at Microsoft.Wps.DevX.DevPortal.Services.ApplicationSubmissionService.RetrieveAccountId() in d:\bt\6528\private\DevX\DevPortal\Source\Services\ApplicationSubmissionService.cs:line 994
 | |
at Microsoft.Wps.DevX.DevPortal.Services.ApplicationSubmissionService.GetCompanyCertificates() in d:\bt\6528\private\DevX\DevPortal\Source\Services\ApplicationSubmissionService.cs:line 686
 | |
at SyncInvokeGetCompanyCertificat |
This file contains hidden or 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
System.ArgumentOutOfRangeException was unhandled | |
Message=Specified argument was out of the range of valid values. | |
Parameter name: childIndex | |
StackTrace: | |
at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex) | |
at AvinorFlights.FlightsPage.<>c__DisplayClass7.<PopulateResult>b__3() | |
at System.Reflection.RuntimeMethodInfo.InternalInvoke(RuntimeMethodInfo rtmi, Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark) | |
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, StackCrawlMark& stackMark) | |
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) | |
at System.Delegate.DynamicInvokeOne(Object[] args) |
This file contains hidden or 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 ItemsControlVisibilityHelper : ContentControl | |
{ | |
public static readonly DependencyProperty ItemsControlProperty = | |
DependencyProperty.Register("ItemsControl", | |
typeof (ItemsControl), | |
typeof (ItemsControlVisibilityHelper), | |
new PropertyMetadata(default(ItemsControl), OnItemsControlChanged)); | |
public ItemsControl ItemsControl | |
{ |
This file contains hidden or 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 PhotoCameraLuminanceSource : LuminanceSource | |
{ | |
public byte[] PreviewBufferY { get; private set; } | |
public PhotoCameraLuminanceSource(int width, int height) : base(width, height) | |
{ | |
PreviewBufferY = new byte[width * height]; | |
} | |
public override sbyte[] Matrix |