Aspects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Ochsner

    Aspects

    Wanted to get thoughts around supporting Aspects and
    Aspect Oriented programming in C#...

    Is it being considered (presumably through attributes)
    and is there a timeline for it?

    Thanks
    Andy O


  • 100

    #2
    Re: Aspects

    Hi Andrew,
    IFAIK, aspects are supported by .NET in general. I don't think c# will
    provide more support than that.
    Take a look at:
    ContextBoundObj ect class and IMessageSink interface.
    As well as:
    IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
    IContributeObje ctSink, IContributeEnvo ySink and
    IContributeClie ntContextSink.

    Using the latter interfaces along with custom attributes you can inject
    message sinks and realize your call's aspects.

    Unfortunately for the latter interfaces MSDN says just:
    "This member supports the .NET Framework infrastructure and is not intended
    to be used directly from your code."

    So you have to look at other sources for info and examples.
    The only book I've read that covers this topic is Don Box' book "Essential
    ..NET vol. 1".

    Hopefully the others on the group can suggest other good books covering
    that.

    HTH
    B\rgds
    100

    "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
    news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Wanted to get thoughts around supporting Aspects and
    > Aspect Oriented programming in C#...
    >
    > Is it being considered (presumably through attributes)
    > and is there a timeline for it?
    >
    > Thanks
    > Andy O
    >
    >[/color]


    Comment

    • Andrew Ochsner

      #3
      Re: Aspects

      Thanks
      Yes, I've looked at ContextBoundObj ects and an article on MSDN (for those
      interested,
      http://msdn.microsoft.com/msdnmag/is.../default.aspx). It seems
      a bit heavy-handed and not very integrated into the CLR. Was just curious
      on if future releases might consider using AOP a bit more, and if not, why
      not? Know there's been lots of discussions about the value of it (or
      dangers I suppose) and I'm not an expert when it comes to AOP so I wasn't
      sure if there are sound reasons not to include tighter integration.

      Thanks again
      Andy O


      "100" <100@100.com> wrote in message
      news:erHcWyjoDH A.2772@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Hi Andrew,
      > IFAIK, aspects are supported by .NET in general. I don't think c# will
      > provide more support than that.
      > Take a look at:
      > ContextBoundObj ect class and IMessageSink interface.
      > As well as:
      > IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
      > IContributeObje ctSink, IContributeEnvo ySink and
      > IContributeClie ntContextSink.
      >
      > Using the latter interfaces along with custom attributes you can inject
      > message sinks and realize your call's aspects.
      >
      > Unfortunately for the latter interfaces MSDN says just:
      > "This member supports the .NET Framework infrastructure and is not[/color]
      intended[color=blue]
      > to be used directly from your code."
      >
      > So you have to look at other sources for info and examples.
      > The only book I've read that covers this topic is Don Box' book[/color]
      "Essential[color=blue]
      > .NET vol. 1".
      >
      > Hopefully the others on the group can suggest other good books covering
      > that.
      >
      > HTH
      > B\rgds
      > 100
      >
      > "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
      > news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...[color=green]
      > > Wanted to get thoughts around supporting Aspects and
      > > Aspect Oriented programming in C#...
      > >
      > > Is it being considered (presumably through attributes)
      > > and is there a timeline for it?
      > >
      > > Thanks
      > > Andy O
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • 100

        #4
        Re: Aspects

        Andrew,
        Thank you for the link. I haven't found it. I'll read it. Anyway, read in
        the book I told you. I think there is better explanation with simple
        examples.
        B\rgds
        100

        "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
        news:%23HSE5jlo DHA.3688@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > Thanks
        > Yes, I've looked at ContextBoundObj ects and an article on MSDN (for those
        > interested,
        > http://msdn.microsoft.com/msdnmag/is.../default.aspx). It[/color]
        seems[color=blue]
        > a bit heavy-handed and not very integrated into the CLR. Was just curious
        > on if future releases might consider using AOP a bit more, and if not, why
        > not? Know there's been lots of discussions about the value of it (or
        > dangers I suppose) and I'm not an expert when it comes to AOP so I wasn't
        > sure if there are sound reasons not to include tighter integration.
        >
        > Thanks again
        > Andy O
        >
        >
        > "100" <100@100.com> wrote in message
        > news:erHcWyjoDH A.2772@TK2MSFTN GP12.phx.gbl...[color=green]
        > > Hi Andrew,
        > > IFAIK, aspects are supported by .NET in general. I don't think c# will
        > > provide more support than that.
        > > Take a look at:
        > > ContextBoundObj ect class and IMessageSink interface.
        > > As well as:
        > > IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
        > > IContributeObje ctSink, IContributeEnvo ySink and
        > > IContributeClie ntContextSink.
        > >
        > > Using the latter interfaces along with custom attributes you can inject
        > > message sinks and realize your call's aspects.
        > >
        > > Unfortunately for the latter interfaces MSDN says just:
        > > "This member supports the .NET Framework infrastructure and is not[/color]
        > intended[color=green]
        > > to be used directly from your code."
        > >
        > > So you have to look at other sources for info and examples.
        > > The only book I've read that covers this topic is Don Box' book[/color]
        > "Essential[color=green]
        > > .NET vol. 1".
        > >
        > > Hopefully the others on the group can suggest other good books covering
        > > that.
        > >
        > > HTH
        > > B\rgds
        > > 100
        > >
        > > "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
        > > news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...[color=darkred]
        > > > Wanted to get thoughts around supporting Aspects and
        > > > Aspect Oriented programming in C#...
        > > >
        > > > Is it being considered (presumably through attributes)
        > > > and is there a timeline for it?
        > > >
        > > > Thanks
        > > > Andy O
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Jeffrey Tan[MSFT]

          #5
          Re: Aspects


          Hi Andrew,

          There is some talk in the link below, and one section of it talks about the
          plans for things like aspect oriented programming and related techniques.

          c6b86c20645

          You can some information about the future of Microsoft developer tools at:
          Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


          And now, the C# Version 2.0 Language Specification is available, you can
          get it from:


          Hope this helps,

          Best regards,
          Jeffrey Tan
          Microsoft Online Partner Support
          Get Secure! - www.microsoft.com/security
          This posting is provided "as is" with no warranties and confers no rights.

          --------------------
          | Reply-To: "Andrew Ochsner" <andrew.ochsner @qwest.com>
          | From: "Andrew Ochsner" <andrew.ochsner @qwest.com>
          | References: <O5Q7OejoDHA.25 28@TK2MSFTNGP12 .phx.gbl>
          <erHcWyjoDHA.27 72@TK2MSFTNGP12 .phx.gbl>
          | Subject: Re: Aspects
          | Date: Mon, 3 Nov 2003 15:22:14 -0700
          | Lines: 62
          | Organization: Qwest
          | X-Priority: 3
          | X-MSMail-Priority: Normal
          | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
          | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
          | Message-ID: <#HSE5jloDHA.36 88@TK2MSFTNGP11 .phx.gbl>
          | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
          | NNTP-Posting-Host: machine45.qwest .net 204.154.239.45
          | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
          | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1964 26
          | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
          |
          | Thanks
          | Yes, I've looked at ContextBoundObj ects and an article on MSDN (for those
          | interested,
          | http://msdn.microsoft.com/msdnmag/is.../default.aspx). It
          seems
          | a bit heavy-handed and not very integrated into the CLR. Was just curious
          | on if future releases might consider using AOP a bit more, and if not, why
          | not? Know there's been lots of discussions about the value of it (or
          | dangers I suppose) and I'm not an expert when it comes to AOP so I wasn't
          | sure if there are sound reasons not to include tighter integration.
          |
          | Thanks again
          | Andy O
          |
          |
          | "100" <100@100.com> wrote in message
          | news:erHcWyjoDH A.2772@TK2MSFTN GP12.phx.gbl...
          | > Hi Andrew,
          | > IFAIK, aspects are supported by .NET in general. I don't think c# will
          | > provide more support than that.
          | > Take a look at:
          | > ContextBoundObj ect class and IMessageSink interface.
          | > As well as:
          | > IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
          | > IContributeObje ctSink, IContributeEnvo ySink and
          | > IContributeClie ntContextSink.
          | >
          | > Using the latter interfaces along with custom attributes you can inject
          | > message sinks and realize your call's aspects.
          | >
          | > Unfortunately for the latter interfaces MSDN says just:
          | > "This member supports the .NET Framework infrastructure and is not
          | intended
          | > to be used directly from your code."
          | >
          | > So you have to look at other sources for info and examples.
          | > The only book I've read that covers this topic is Don Box' book
          | "Essential
          | > .NET vol. 1".
          | >
          | > Hopefully the others on the group can suggest other good books covering
          | > that.
          | >
          | > HTH
          | > B\rgds
          | > 100
          | >
          | > "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
          | > news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...
          | > > Wanted to get thoughts around supporting Aspects and
          | > > Aspect Oriented programming in C#...
          | > >
          | > > Is it being considered (presumably through attributes)
          | > > and is there a timeline for it?
          | > >
          | > > Thanks
          | > > Andy O
          | > >
          | > >
          | >
          | >
          |
          |
          |

          Comment

          • Andrew Ochsner

            #6
            Re: Aspects

            Jeffrey:

            Thanks! The first link to the Panel discussion was actually exactly what I
            was looking for. I was at the PDC but was unable to attend that panel (was
            at another) and was curious if it ever came up. Thanks!

            Andy O


            ""Jeffrey Tan[MSFT]"" <v-jetan@online.mi crosoft.com> wrote in message
            news:CtDG523oDH A.2464@cpmsftng xa06.phx.gbl...[color=blue]
            >
            > Hi Andrew,
            >
            > There is some talk in the link below, and one section of it talks about[/color]
            the[color=blue]
            > plans for things like aspect oriented programming and related techniques.
            >[/color]
            http://blogs.gotdotnet.com/jasonz/co...af-4c66-8dbe-d[color=blue]
            > c6b86c20645
            >
            > You can some information about the future of Microsoft developer tools at:
            > http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx
            >
            > And now, the C# Version 2.0 Language Specification is available, you can
            > get it from:
            > http://msdn.microsoft.com/vcsharp/
            >
            > Hope this helps,
            >
            > Best regards,
            > Jeffrey Tan
            > Microsoft Online Partner Support
            > Get Secure! - www.microsoft.com/security
            > This posting is provided "as is" with no warranties and confers no rights.
            >
            > --------------------
            > | Reply-To: "Andrew Ochsner" <andrew.ochsner @qwest.com>
            > | From: "Andrew Ochsner" <andrew.ochsner @qwest.com>
            > | References: <O5Q7OejoDHA.25 28@TK2MSFTNGP12 .phx.gbl>
            > <erHcWyjoDHA.27 72@TK2MSFTNGP12 .phx.gbl>
            > | Subject: Re: Aspects
            > | Date: Mon, 3 Nov 2003 15:22:14 -0700
            > | Lines: 62
            > | Organization: Qwest
            > | X-Priority: 3
            > | X-MSMail-Priority: Normal
            > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
            > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
            > | Message-ID: <#HSE5jloDHA.36 88@TK2MSFTNGP11 .phx.gbl>
            > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
            > | NNTP-Posting-Host: machine45.qwest .net 204.154.239.45
            > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
            > | Xref: cpmsftngxa06.ph x.gbl[/color]
            microsoft.publi c.dotnet.langua ges.csharp:1964 26[color=blue]
            > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
            > |
            > | Thanks
            > | Yes, I've looked at ContextBoundObj ects and an article on MSDN (for[/color]
            those[color=blue]
            > | interested,
            > | http://msdn.microsoft.com/msdnmag/is.../default.aspx). It
            > seems
            > | a bit heavy-handed and not very integrated into the CLR. Was just[/color]
            curious[color=blue]
            > | on if future releases might consider using AOP a bit more, and if not,[/color]
            why[color=blue]
            > | not? Know there's been lots of discussions about the value of it (or
            > | dangers I suppose) and I'm not an expert when it comes to AOP so I[/color]
            wasn't[color=blue]
            > | sure if there are sound reasons not to include tighter integration.
            > |
            > | Thanks again
            > | Andy O
            > |
            > |
            > | "100" <100@100.com> wrote in message
            > | news:erHcWyjoDH A.2772@TK2MSFTN GP12.phx.gbl...
            > | > Hi Andrew,
            > | > IFAIK, aspects are supported by .NET in general. I don't think c# will
            > | > provide more support than that.
            > | > Take a look at:
            > | > ContextBoundObj ect class and IMessageSink interface.
            > | > As well as:
            > | > IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
            > | > IContributeObje ctSink, IContributeEnvo ySink and
            > | > IContributeClie ntContextSink.
            > | >
            > | > Using the latter interfaces along with custom attributes you can[/color]
            inject[color=blue]
            > | > message sinks and realize your call's aspects.
            > | >
            > | > Unfortunately for the latter interfaces MSDN says just:
            > | > "This member supports the .NET Framework infrastructure and is not
            > | intended
            > | > to be used directly from your code."
            > | >
            > | > So you have to look at other sources for info and examples.
            > | > The only book I've read that covers this topic is Don Box' book
            > | "Essential
            > | > .NET vol. 1".
            > | >
            > | > Hopefully the others on the group can suggest other good books[/color]
            covering[color=blue]
            > | > that.
            > | >
            > | > HTH
            > | > B\rgds
            > | > 100
            > | >
            > | > "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
            > | > news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...
            > | > > Wanted to get thoughts around supporting Aspects and
            > | > > Aspect Oriented programming in C#...
            > | > >
            > | > > Is it being considered (presumably through attributes)
            > | > > and is there a timeline for it?
            > | > >
            > | > > Thanks
            > | > > Andy O
            > | > >
            > | > >
            > | >
            > | >
            > |
            > |
            > |
            >[/color]


            Comment

            • Jeffrey Tan[MSFT]

              #7
              Re: Aspects


              Hi Andrew,

              I am glad it makes sense to you.
              If you still have any question, please feel to tell me.

              Best regards,
              Jeffrey Tan
              Microsoft Online Partner Support
              Get Secure! - www.microsoft.com/security
              This posting is provided "as is" with no warranties and confers no rights.

              --------------------
              | Reply-To: "Andrew Ochsner" <andrew.ochsner @qwest.com>
              | From: "Andrew Ochsner" <andrew.ochsner @qwest.com>
              | References: <O5Q7OejoDHA.25 28@TK2MSFTNGP12 .phx.gbl>
              <erHcWyjoDHA.27 72@TK2MSFTNGP12 .phx.gbl>
              <#HSE5jloDHA.36 88@TK2MSFTNGP11 .phx.gbl>
              <CtDG523oDHA.24 64@cpmsftngxa06 .phx.gbl>
              | Subject: Re: Aspects
              | Date: Wed, 5 Nov 2003 08:52:02 -0700
              | Lines: 130
              | Organization: Qwest
              | X-Priority: 3
              | X-MSMail-Priority: Normal
              | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
              | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
              | Message-ID: <OMnMET7oDHA.22 44@TK2MSFTNGP12 .phx.gbl>
              | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
              | NNTP-Posting-Host: machine45.qwest .net 204.154.239.45
              | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
              | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1969 53
              | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
              |
              | Jeffrey:
              |
              | Thanks! The first link to the Panel discussion was actually exactly what
              I
              | was looking for. I was at the PDC but was unable to attend that panel
              (was
              | at another) and was curious if it ever came up. Thanks!
              |
              | Andy O
              |
              |
              | ""Jeffrey Tan[MSFT]"" <v-jetan@online.mi crosoft.com> wrote in message
              | news:CtDG523oDH A.2464@cpmsftng xa06.phx.gbl...
              | >
              | > Hi Andrew,
              | >
              | > There is some talk in the link below, and one section of it talks about
              | the
              | > plans for things like aspect oriented programming and related
              techniques.
              | >
              |

              | > c6b86c20645
              | >
              | > You can some information about the future of Microsoft developer tools
              at:
              | > http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx
              | >
              | > And now, the C# Version 2.0 Language Specification is available, you can
              | > get it from:
              | > http://msdn.microsoft.com/vcsharp/
              | >
              | > Hope this helps,
              | >
              | > Best regards,
              | > Jeffrey Tan
              | > Microsoft Online Partner Support
              | > Get Secure! - www.microsoft.com/security
              | > This posting is provided "as is" with no warranties and confers no
              rights.
              | >
              | > --------------------
              | > | Reply-To: "Andrew Ochsner" <andrew.ochsner @qwest.com>
              | > | From: "Andrew Ochsner" <andrew.ochsner @qwest.com>
              | > | References: <O5Q7OejoDHA.25 28@TK2MSFTNGP12 .phx.gbl>
              | > <erHcWyjoDHA.27 72@TK2MSFTNGP12 .phx.gbl>
              | > | Subject: Re: Aspects
              | > | Date: Mon, 3 Nov 2003 15:22:14 -0700
              | > | Lines: 62
              | > | Organization: Qwest
              | > | X-Priority: 3
              | > | X-MSMail-Priority: Normal
              | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
              | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
              | > | Message-ID: <#HSE5jloDHA.36 88@TK2MSFTNGP11 .phx.gbl>
              | > | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
              | > | NNTP-Posting-Host: machine45.qwest .net 204.154.239.45
              | > | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
              | > | Xref: cpmsftngxa06.ph x.gbl
              | microsoft.publi c.dotnet.langua ges.csharp:1964 26
              | > | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
              | > |
              | > | Thanks
              | > | Yes, I've looked at ContextBoundObj ects and an article on MSDN (for
              | those
              | > | interested,
              | > | http://msdn.microsoft.com/msdnmag/is.../default.aspx). It
              | > seems
              | > | a bit heavy-handed and not very integrated into the CLR. Was just
              | curious
              | > | on if future releases might consider using AOP a bit more, and if not,
              | why
              | > | not? Know there's been lots of discussions about the value of it (or
              | > | dangers I suppose) and I'm not an expert when it comes to AOP so I
              | wasn't
              | > | sure if there are sound reasons not to include tighter integration.
              | > |
              | > | Thanks again
              | > | Andy O
              | > |
              | > |
              | > | "100" <100@100.com> wrote in message
              | > | news:erHcWyjoDH A.2772@TK2MSFTN GP12.phx.gbl...
              | > | > Hi Andrew,
              | > | > IFAIK, aspects are supported by .NET in general. I don't think c#
              will
              | > | > provide more support than that.
              | > | > Take a look at:
              | > | > ContextBoundObj ect class and IMessageSink interface.
              | > | > As well as:
              | > | > IContextAttribu te, IContextPropert y, IContributeServ erContextSink,
              | > | > IContributeObje ctSink, IContributeEnvo ySink and
              | > | > IContributeClie ntContextSink.
              | > | >
              | > | > Using the latter interfaces along with custom attributes you can
              | inject
              | > | > message sinks and realize your call's aspects.
              | > | >
              | > | > Unfortunately for the latter interfaces MSDN says just:
              | > | > "This member supports the .NET Framework infrastructure and is not
              | > | intended
              | > | > to be used directly from your code."
              | > | >
              | > | > So you have to look at other sources for info and examples.
              | > | > The only book I've read that covers this topic is Don Box' book
              | > | "Essential
              | > | > .NET vol. 1".
              | > | >
              | > | > Hopefully the others on the group can suggest other good books
              | covering
              | > | > that.
              | > | >
              | > | > HTH
              | > | > B\rgds
              | > | > 100
              | > | >
              | > | > "Andrew Ochsner" <andrew.ochsner @qwest.com> wrote in message
              | > | > news:O5Q7OejoDH A.2528@TK2MSFTN GP12.phx.gbl...
              | > | > > Wanted to get thoughts around supporting Aspects and
              | > | > > Aspect Oriented programming in C#...
              | > | > >
              | > | > > Is it being considered (presumably through attributes)
              | > | > > and is there a timeline for it?
              | > | > >
              | > | > > Thanks
              | > | > > Andy O
              | > | > >
              | > | > >
              | > | >
              | > | >
              | > |
              | > |
              | > |
              | >
              |
              |
              |

              Comment

              Working...