Sign in
Lucian's VBlog
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
async
COM
covariance
iterators
mvvm
phone
plugin
PostVB10
spec
talk
tools
web
win8
Archive
Archives
February 2013
(3)
December 2012
(3)
November 2012
(6)
July 2012
(1)
May 2012
(1)
April 2012
(1)
March 2012
(3)
November 2011
(1)
October 2011
(1)
May 2011
(4)
April 2011
(6)
October 2010
(2)
June 2010
(1)
April 2010
(2)
March 2010
(7)
February 2010
(29)
January 2010
(12)
November 2009
(2)
August 2009
(1)
February 2009
(1)
December 2008
(1)
November 2008
(3)
October 2008
(4)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Lucian's VBlog
MVVM with Async - sample code
Posted
2 months ago
by
Lucian Wischik, MSFT
0
Comments
How do you combine MVVM with async? -- Well, really, there's not much to it. Just the same as always. Here's an example Silverlight MVVM project. It first shipped with the Async CTP, and I've updated it to use VS2012 and Microsoft.Bcl.Async. Download...
Lucian's VBlog
Talk: The New Async Design Patterns
Posted
3 months ago
by
Lucian Wischik, MSFT
8
Comments
Talk: The New Async Design Patterns Async involves some new concepts. They're not difficult; just unfamiliar. Over the past year I've been watching how people use it. This talk distils out the three top async patterns and anti-patterns. Async...
Lucian's VBlog
Talk: Async Part 2 - for architects, under the hood
Posted
3 months ago
by
Lucian Wischik, MSFT
0
Comments
Talk: Async Part 2 - for architects, under the hood This talk tackles some more advanced async topics. Async idioms - the "TAP" Task Asynchronous Pattern, when and when not to expose async APIs, the unexpected trouble with Task.Yield Integrating...
Lucian's VBlog
How to write a custom awaiter
Posted
5 months ago
by
Lucian Wischik, MSFT
0
Comments
[This post is part of a series How to await a storyboard, and other things ] The normal behavior of the "await" operator on a task is to suspend execution of the method; then, when the task operand has finished, to resume execution on the same SynchronizationContext...
Lucian's VBlog
How to await a command-line process, and capture its output
Posted
5 months ago
by
Lucian Wischik, MSFT
2
Comments
[This post is part of a series How to await a storyboard, and other things ] I want to invoke an external executable, and await until it’s finished, and get back its output. (In my case, the external executable is called “ tidy.exe ”...
Lucian's VBlog
Await HttpClient.GetStringAsync() and cancellation
Posted
5 months ago
by
Lucian Wischik, MSFT
1
Comments
I’m a big fan of supporting cancellation on async methods. I was recently wondering how to do this for HttpClient.GetStringAsync(). This post has some answers. Async Function TestAsync(uri As Uri , Optional cancel As CancellationToken = Nothing...
Lucian's VBlog
How to await a button click
Posted
5 months ago
by
Lucian Wischik, MSFT
1
Comments
[This post is part of a series How to await a storyboard, and other things ] Sometimes we want to await until a button has been clicked. Once place where this is useful is, for instance, when displaying the message “Click button to continue”...
Lucian's VBlog
How to await a drag operation
Posted
5 months ago
by
Lucian Wischik, MSFT
0
Comments
[This post is part of a series How to await a storyboard, and other things ] In my app, I want to await a drag operation. Here’s how I’d like to await it: Private Async Sub rectangle1_PointerPressed(sender As Object , e As PointerRoutedEventArgs...
Lucian's VBlog
How to await a MediaElement (PlaySound in Windows 8)
Posted
5 months ago
by
Lucian Wischik, MSFT
0
Comments
[This post is part of a series How to await a storyboard, and other things ] Let’s look at making MediaElement awaitable. This is the kind of idiom I’d like to use: Try Await mediaElement1.OpenAsync( New Uri ( "ms-appx:///Assets...
Lucian's VBlog
How to await a storyboard, and other things
Posted
5 months ago
by
Lucian Wischik, MSFT
3
Comments
This post is part of a series about an important new design pattern, awaiting events ... I also made a Channel9 video introduction " Async Over Events ". In this blog series: How to await a storyboard, and other things How to await a MediaElement...
Lucian's VBlog
How to hibernate async methods (how to serialize Task)
Posted
5 months ago
by
Lucian Wischik, MSFT
5
Comments
Sometimes people ask the question “How can I serialize a Task?” If you try, it throws a SerializationException: Dim t = TestAsync() Using stream As New MemoryStream Dim formatter As New Formatters.Binary. BinaryFormatter formatter...
Lucian's VBlog
Why must async methods return Task?
Posted
6 months ago
by
Lucian Wischik, MSFT
6
Comments
We all know that async methods return Task or Task(Of T): Async Function GetNameAsync() As Task ( Of String ) Await Task .Delay(10) Return "ernest" End Function Sometimes, advanced users ask for the ability to return different types out of an async...
Lucian's VBlog
When is a non-breaking language fix, breaking?
Posted
10 months ago
by
Lucian Wischik, MSFT
0
Comments
In VS2012 we fixed some method-resolution problems from VS2010. These were method-calls that failed to compile in VS2010, but now compile cleanly in VS2012. VB: Dim numbers As IEnumerable ( Of Integer ) = {1, 2, 3} Sub f( Of T )(x As T ) Sub...
Lucian's VBlog
What would you like to know about "how we do language design for VB and C#" ?
Posted
11 months ago
by
Lucian Wischik, MSFT
12
Comments
On June 6th I'll be speaking at the Norway Developer Conference in Oslo, on the subject "How we do language design at Microsoft (VB/C#)". It will cover topics like how we designed Async, how we run our week-to-week language design process, where we get...
Lucian's VBlog
Async Targeting Pack
Posted
over 1 year ago
by
Lucian Wischik, MSFT
14
Comments
[UPDATE: The async targeting pack has been renamed " Microsoft.Bcl.Async ". It now supports async for portable libraries] We’ve just released an " Async Targeting Pack ” [update: replaced by Microsoft.Bcl.Async ] via NuGet. It lets you...
Lucian's VBlog
Talk: Async Part 1 - the message-loop, and the Task type
Posted
over 1 year ago
by
Lucian Wischik, MSFT
2
Comments
Talk: Async Part 1 - the message-loop, and the Task type After giving lots of training and talks over the past two years, this is my most recent take on how to explain Async. The message-loop is fundamental. You can't understand async unless...
Lucian's VBlog
Talk: What's new in VB11 (VS11 Beta)
Posted
over 1 year ago
by
Lucian Wischik, MSFT
5
Comments
Talk: What's new in VB11 This talk details some of what's new in VB11. (Just some: there were too many improvements to cover them all in just one talk). Win8 support VBCore (=> new platform support for VB on Phone, XNA, MicroFramework, Kinect, Surface...
Lucian's VBlog
AsyncCTP installation problems (and VS11)
Posted
over 1 year ago
by
Lucian Wischik, MSFT
8
Comments
The AsyncCTP is getting a bit long in the tooth. This post is to explain how, why, and what to do. Common symptoms: AsyncCTP fails to install -- i.e. it doesn't create the "Async CTP" folder inside "My Documents", and VS doesn't recognize the...
Lucian's VBlog
Async CTP v3 – installation
Posted
over 2 years ago
by
Lucian Wischik, MSFT
20
Comments
The third version of the Async CTP was released on 31st October 2011. The reason for releasing v3 is to address installation issues -- a recent Windows Update had conflicted with the Async CTP v2 and stopped it working, or prevented its installation...
Lucian's VBlog
A day in the life of compiler bugfixing
Posted
over 2 years ago
by
Lucian Wischik, MSFT
5
Comments
The VB/C# team is hard at work on the Async feature... You might already have download the Async CTP yourself, or tried out async in the VS11 Developer Preview , and you might wonder: "The feature seems complete already -- so what are they still...
Lucian's VBlog
Talk: What's new in VB10 (VS2010)
Posted
over 2 years ago
by
Lucian Wischik, MSFT
0
Comments
Talk: What's new in VB10 (VS2010) This talk details the new VB language features that arrived in VS2010 -- Implicit Line Continuations - http://www.unemployedunderscores.com/ Array Literals Collection Initializers Auto-implemented Properties Multi...
Lucian's VBlog
Talk: How to write an [Async] connected app for Windows Phone 7.1
Posted
over 2 years ago
by
Lucian Wischik, MSFT
0
Comments
Talk: How to write an [Async] connected app for Windows Phone 7.1 This talk is all about writing a connected app for the Windows Phone. The talk covered: (1) Azure/WP7 toolkit for the server-side of the phone app. Most good phone apps will need some...
Lucian's VBlog
Talk: The [Async] Future of VB and C#
Posted
over 2 years ago
by
Lucian Wischik, MSFT
2
Comments
Talk: The [Async] Future of VB and C# I gave a C#-specific version of this talk at DevConnections in Las Vegas, USA on 2011.11.01 This talk is mainly about Async and goes into considerable technical depth. It also covers the new CallerInfo...
Lucian's VBlog
[placeholder] How to write a connected VB phone app
Posted
over 2 years ago
by
Lucian Wischik, MSFT
0
Comments
This blog article has been moved and enhanced: http://blogs.msdn.com/b/lucian/archive/2011/05/20/talk-how-to-write-an-async-connected-app-for-windows-phone-7.aspx
Lucian's VBlog
Async CTP Refresh - mitigation strategies
Posted
over 2 years ago
by
Lucian Wischik, MSFT
1
Comments
Async CTP Refresh - mitigations when using the CTP The preceding four blog posts have outlined the known and unknown bug areas in the CTP. Now it's time to set out some concrete mitigation strategies. Use F# instead F# already shipped in VS2010...
Page 1 of 4 (93 items)
1
2
3
4