Click here to Skip to main content
12,503,829 members (31,621 online)
Click here to Skip to main content

Stats

31.7K views
762 downloads
136 bookmarked
Posted

Declarative multithreading

, 13 Mar 2012 CDDL
An introduction and proof of concept code for the idea of declarative multi threading in C#.
using System.Runtime.Remoting.Messaging;

namespace ThreadBound
{
    /// <summary>
    /// This is only a wrapper for the OneWayAttribute to make it more descriptive.
    /// You can use [OnyWay] directly, too. [AsyncThreaded] is more consistent with with the
    /// [FreeThreaded]-attribute. This attribute declares that the taged method should be
    /// executed asynchronously within the thread-context of the class.
    /// </summary>
    /// <remarks>
    /// Method with this attribute must not return any value (must be void) und must not have
    /// any out-paremters. An exception will be thrown if any of these prerequisite are not met.
    /// </remarks>
    public class AsyncThreadedAttribute : OneWayAttribute
    {
    }
}

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 Common Development and Distribution License (CDDL)

Share

About the Author

gossd
Systems Engineer
Germany Germany
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160919.1 | Last Updated 13 Mar 2012
Article Copyright 2011 by gossd
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid