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
void Main() | |
{ | |
var key1Task = new Task<string>(() => ExampleCache.GetItem("key1")); | |
var key2Task = new Task<string>(() => ExampleCache.GetItem("key2")); | |
key1Task.Start(); | |
key2Task.Start(); | |
Task.WaitAll(key1Task, key2Task); | |
key1Task.Result.Dump(); | |
key2Task.Result.Dump(); | |
} |
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 TodoItemController : TableController<TodoItem> | |
{ | |
protected override void Initialize(HttpControllerContext controllerContext) | |
{ | |
base.Initialize(controllerContext); | |
MobileServiceContext context = new MobileServiceContext(); | |
DomainManager = new EntityDomainManager<TodoItem>(context, Request, Services); | |
} | |
// GET tables/TodoItem |
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
/** | |
Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project. | |
If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms. | |
The location of `boot.js` can be specified and/or overridden in `jasmine.yml`. | |
[jasmine-gem]: http://github.com/pivotal/jasmine-gem | |
jasmine-boot-console.js modifications by Adam Anderson, Falafel Software, 2014 |
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 ServiceStack.Common; | |
using ServiceStack.OrmLite; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.ServiceInterface.Auth; | |
using ServiceStack.WebHost.Endpoints; | |
using System; | |
using System.Data; | |
using System.Globalization; | |
using System.Security.Cryptography; | |
using System.Text; |