Skip to main content


Anglebrackets Conference – Day 4

Keynote – ASP.NET vNext and you
Speaker: Scott Hanselman
ASP.NET will run anywhere (Mac and Linux). Web server will be included.
New free SKU of Visual Studio. Community edition will replace Express.
image_dbbecd7b-9298-4dde-993a-acd9d9461515ASP.NET and modern web

  • Totally modular (dependency injection built in)
  • Faster development cycle
  • Seamless transition from on-premises to cloud
  • Choose your editors and tools
  • Open source with contribution
  • Cross-platform
  • FAST

Framework (CoreCLR) is packaged together with application, not shared, safe to deploy.
Split between .NET Framework (Full CLR) and .NET Core (Core CLR). Core CLR is open sourced and cross-platform.
Project file (project.json) is replacing both web.config and nuget package file).
It’s possible to reference ASP.NET is source form and debug it.
VS supports Bower (client-side package manager) and Grunt (client side build tool).

Demo: packaging ASP.NET application together with framework, move to different computer and run it from there.
Demo:  run ASP.NET application on Mac. – cross-platform .NET IDE.
Resource: – portal to Microsoft open source

Session: Adding Offline support to mobile apps which using Azure mobile services
Speaker: Robert Green, technical evangelist at Microsoft
Review of Azure Mobile Services
Add offline support

  • SQLiteStore
  • Synchronization context
  • Pull, push, purge
  • Conflict resolution

Sync table

  • local table that tracks local changes
  • Only works with entities with string ids


  • Requires SQLite (nuget package)
  • Requires SQLiteStore package
  • Use GetSyncTable instead of GetTable, this way offline support will be enabled.
  • Need to add a column with version number to the entity

Demo: using sync table from windows store app and windows phone app

  • Table.PullData() is loading data from server (Azure) to local table and it’s also pushing offline changes to the server, doing full synchronization, but just for that table.
  • SyncContext.Push() is uploading all local changes to server
  • Table.Purge() is cleaning the local table. It’s not recording a deletion operation.

Conflict detection

  • Create sync handler to handle conflicts. Demo.
  • Default sync handler fails if there are conflicts

Session: Modern app diagnostic with Glimpse with ASP.NET
Speaker: Anthony van der Hoorn

Web application diagnostic tool

Glimpse could be downloaded as nuget package

Diagnostics is one of the hardest thing to do

40-60% of time spent debugging

  1. Current approach
    1. Debugging and diagnostic didn’t change in last 20 years
    2. Debugging tool are too low level
    3. Runtime is dynamic it could be hard to match request with execution flow
  2. Context is important
  3. Important questions
    1. How to educate people about what’s going on in application
    2. How do we know if framework is running as expected
  4. Glimpse
    1. Trace.axd for 21st century. Shows at the bottom of the page
    2. Aggregate request data
    3. Bridge client and server
    4. Framework-level insights
    5. Free, open source
    6. Built as HttpModule
  5. Glimpse demo

Glimpse can display:

  • Server configuration settings
  • Server environment
  • Request, as received by the server
  • Session
  • Http varuables
  • Trace
  • Execution timeline with performance data
  • Metadata
  • Route data
  • Views, MVC engine decision tree
  • SQL execution with performance data
  • Overall timeline, what’s happening when
  • Inspec Ajax requests
  • Dashboard display


Session: Building Persistent HTML5 applications

Speaker: Craig Shoemaker


Client-side persistence options

  1. Cookies.
  • Old, good, suppoted by every browser
  • Work for smaller pieces of data, ids
  1. Web storage
  • Fne for smaller pieces of data
  1. Offline caching
  • Doesn’t store data, stores pages and resources
  1. IndexedDB
  • Document database, noSQL
  • Can persist JSON
  • Key/value. Value is an object
  1. Web SQL – dead-end, not supported


Even lifecycle:

  • Open request
  • Pass a database version
  • On upgrade needed, if new version is available, Then do DB upgrade.
  • Success event
  • May raise error

Need to “normalize API”, i.e. translate vendor-specific API names

Close DB before deleting.

Have to have a transaction

Chrome dev tools allow to inspect IndexedDB

Can do cursor

Can create index and search by index

Stable standard, no difference between browsers

Can create keys, keys can autoincrement or GUID

See for example of indexDB abstraction

Web Storage

Aka DOMStorage, SessionStorage, LocalStorage

Also key/value pair

Storage limit is 5Mb (2.5Mb, because of unicode).


Data remain on client

no databases, no versioning

sessionStorage vs localStorage – sessionStorage is not persistent

“storage” event, can subscribe

Session: Building Custom Monitoring, fast (using Glimpse)
Speaker: Anthony van der Hoorn, Glimpse

Demo: instrumenting MVC app for Glimpse.

Create a class extending AspNetTab.

Application is not modified by added instrumentation.

No need to format data, glimpse takes care of data representation.

If needs to access session in AspNetTab then need to override ExecuteOn to set OnEndSession

Possible to specify custom layout for tab.

defaultRuntimePolicy=”Off” – will not do anything

Implement IRuntimePolicy to enable Glimpse only for specific cases (like for specific users, user groups)

RuntimePolicy.PersistResults = record only, not display

Implement IResource to create custom data provider

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stan Tarnovskiy

Solutions Architect at Perficient

More from this Author

Follow Us