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 TraceSourceExceptionLogger : ExceptionLogger | |
| { | |
| private readonly TraceSource _traceSource; | |
| public TraceSourceExceptionLogger(TraceSource traceSource) | |
| { | |
| _traceSource = traceSource; | |
| } | |
| public override void Log(ExceptionLoggerContext context) |
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
| window.onerror = (eventOrMessage: any, uri: string, lineNumber: number, columnNumber?: number): boolean => { | |
| /*Add your global exception handling logic here*/ | |
| } |
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 timeout = Task.Delay(5000); | |
| timeout.Start(); |
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 abstract class InjectedWebViewPage : WebViewPage | |
| { | |
| [Dependency] | |
| public IAppSettings Settings { get; set; } | |
| } |
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.web.webPages.razor> | |
| <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> | |
| <pages pageBaseType="MyApp.Custom.InjectedWebViewPage"> | |
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
| @{ | |
| ViewBag.Title = "Home Page"; | |
| Layout = "~/Views/Shared/_Layout.cshtml"; | |
| } | |
| <h2>@ViewBag.Message</h2> | |
| Please contact us at @Settings.EmailAddress |
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
| function timeout(timeOutAfter) { | |
| var dfd = jQuery.Deferred(); | |
| setTimeout(function () { | |
| dfd.resolve('done!'); | |
| }, timeOutAfter); | |
| return dfd.promise(); | |
| } | |
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
| define('jquery',[], function () { return jQuery; }); | |
| define('knockout', [], function () { return ko }); |
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
| /// <reference path="../../../Scripts/typings/knockout/knockout.d.ts" /> | |
| /// <reference path="../../../Scripts/typings/durandal/durandal-1.x.d.ts" /> | |
| import system = require('durandal/system'); | |
| class createUserViewModel{ | |
| public user = { | |
| LastName: ko.observable(''), | |
| FirstName:ko.observable('') | |
| }; |
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.webServer> | |
| <staticContent> | |
| <remove fileExtension=".ts" /> | |
| <mimeMap fileExtension=".ts" mimeType="text/x-typescript" /> | |
| </staticContent> | |
| <!-- Some other content --> | |
| </system.webServer> |
OlderNewer