Click here to Skip to main content
15,886,693 members
Articles / Programming Languages / C#

Generating synchronous method stubs from asynchronous method pairs

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
8 Feb 2008CPOL2 min read 29.5K   105   6  
Writing asynchronous code requires repetative programming if you have synchronous method stubs as well. This code generator creates them for you.
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\CLSID\{3F341436-B594-41f1-9499-CE24FF96A209}]
@="SynchronizerCustomTool"
"InprocServer32"="C:\\WINDOWS\\system32\\mscoree.dll"
"Class"="SynchronizerCustomTool.Synchronizer"
"Assembly"="SynchronizerCustomTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c88b96b9c9bed10d"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Generators\{164B10B9-B200-11D0-8C61-00A0C91E29D5}\SynchronizerCustomTool]
@="SynchronizerCustomTool"
"CLSID"="{3F341436-B594-41f1-9499-CE24FF96A209}"
"GeneratesDesignTimeSource"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Generators\{E6FDF8B0-F3D1-11D4-8576-0002A516ECE8}\SynchronizerCustomTool]
@="SynchronizerCustomTool"
"CLSID"="{3F341436-B594-41f1-9499-CE24FF96A209}"
"GeneratesDesignTimeSource"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Generators\{FAE04EC1-301F-11d3-BF4B-00C04F79EFBC}\SynchronizerCustomTool]
@="SynchronizerCustomTool"
"CLSID"="{3F341436-B594-41f1-9499-CE24FF96A209}"
"GeneratesDesignTimeSource"=dword:00000001

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
New Zealand New Zealand
"Find a job you love, and you'll never work a day in your life."

Adam Langley is a software engineer in Auckland, New Zealand.

Software development is his personal passion, he takes pride in his work, and likes to share his experiences with the development community.

When he's not coercing computers, you'll find him riding his motorcycle, or attempting to carve something creative from bone.

Comments and Discussions