My Articles

Introduction to Aspect Oriented Programming and PostSharp
http://dotnetslackers.com/articles/net/Introduction-to-Aspect-Oriented-Programming-and-PostSharp.aspx

Getting ELMAH to work with WCF
http://dotnetslackers.com/articles/aspnet/Getting-ELMAH-to-work-with-WCF-services.aspx

Storing MVC controllers & views in separate assemblies
http://dotnetslackers.com/articles/aspnet/Storing-ASP-NET-MVC-Controllers-Views-in-separate-assemblies.aspx

4 comments on “My Articles

  1. Hi Dustin
    I saw your article on dotnetslackers about storing shared controllers and views in separate assemblies. Do you know how I might share a global masterpage in a similar way?

    Thanks
    Dan Dyson

  2. Dear Dustin,

    My name is Fred Lores, I work at campusMVP. I came upon your blog through Google and I was wondering if you would like to participate in one of our campusMVP initiatives.

    campusMVP is a European company that focuses on Microsoft technology training and book publishing. Currently we have several books in Spanish and a couple of books in English that we sell through Amazon.

    We are sending our books free to bloggers that master certain Microsoft programming areas so they can review them freely. In your case, I would like to send you a paperback copy of a book on .Net Windows Development so you can review it and say whatever you want about it in a blog post..

    This is the book link @ Amazon:
    http://www.amazon.com/NET-Windows-Development-Everyday-Optimization/dp/8493548936/ref=sr_1_1?ie=UTF8&s=books&qid=1302849643&sr=1-1

    Please get back to me if you want to participate in this initiative. If you do, I would need an address and a name to send the book over to you. We also have the ebook version if you enjoy reading electronic formats.

    Look forward to your reply.

    Regards,

    Fred Lores

  3. Dear Dustin,

    My name is Gowthaman , I working at various concepts in post sharp . I came upon your blog through Google and I was wondering if you would like to get help from you upon various aspect related information through postsharp.

    Currently i have a problem which is said to be as

    this is my aspect structure

    [Serializable]
    public class ComplexAspect : InstanceLevelAspect
    {
    [OnMethodExitAdvice, MulticastPointcut(MemberName = “.ctor”)]
    public void OnExit(MethodExecutionArgs args)
    {
    //Object should be initialized, do work.
    string value = ((ExampleClass)args.Instance).Name;
    Console.WriteLine(“Name is ” + value);
    }

    [OnLocationGetValueAdvice, MulticastPointcut(Targets = MulticastTargets.Property)]
    public void OnGetValue(LocationInterceptionArgs args)
    {
    Console.WriteLine(“Get value for ” + args.LocationName);
    args.ProceedGetValue();
    }

    [OnLocationSetValueAdvice, MulticastPointcut(Targets = MulticastTargets.Property)]
    public void OnSetValue(LocationInterceptionArgs args)
    {
    Console.WriteLine(“Set value for ” + args.LocationName);
    args.ProceedSetValue();
    }

    public override void RuntimeInitializeInstance()
    {
    base.RuntimeInitializeInstance();
    }

    }

    and i my code is said to be as

    using system.Io;

    [assembly: ComplexAspect(AttributeTargetAssemblies = “mscorlib”, AttributeTargetMembers = “.ctor(string *)”, AttributeExclude = false)]

    namespace Interceptionss
    {
    class Program
    {
    static void Main(string[] args)
    {
    StreamWriter sw = new StreamWriter(“d:/sample.txt”);
    }
    }
    }

    the above aspect does not works well….

    can you provide me a solution for this problem..!

    but through this code :
    [assembly: Interception.Trace(AttributeTargetAssemblies = “mscorlib”, AttributeTargetTypes = “System.IO.File”, AttributeTargetMembers = “create”, AttributeExclude = false)]

    it works well with file.create() method…..

    waiting for your responses and sugessions at earliest….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s