- RedirectToRouteResult is now RedirectToActionResult, with an
ActionName
property - No System.Runtime.Caching - replace it with IMemoryCache (
Microsoft.Extensions.Caching.Memory
) - typeof(x).Assembly is now typeof(x).GetTypeInfo().Assembly
- MongoCollection has changed
- StringComparison.InvariantCultureIgnoreCase is gone, easy replacement
- Configuration + Sections are totally different
- HttpContext and HttpRequest etc. now found in
Microsoft.AspNetCore.Http.Abstractions - Microsoft.AspNetCore.Http.HttpRequest
- Request.RequestUri is now various new properties, for example
Request.Host (a HostString)
- WebActivatorEx?
- DependencyResolver?
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using MonoTouch.UIKit; | |
namespace Async.iOS | |
{ | |
public static class Layout | |
{ |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
Task.Factory.StartNew(() => { | |
Console.WriteLine ("ping"); | |
Thread.Sleep(4000); | |
Console.WriteLine ("pong"); | |
return "from the thread"; |