postsharp Questions
1
Solved
In the examples on their website, PostSharp has a demo of intercepting calls in main system assemblies. I have tried a few times to setup and replicate said intercept calls on assemblies I don't ha...
4
Solved
I am battling to understand why a post compiler, like PostSharp, should ever be needed?
My understanding is that it just inserts code where attributed in the original code, so why doesn't the deve...
Typographer asked 1/10, 2009 at 8:52
1
Solved
I'm just starting out with postsharp/AOP. I want to make some instrumentation for C# to track the usage of some addins that I write for a peice of software.
I am trying to use the OnMethodBoundary...
1
Solved
I'm using log4net to log my web app's progress, using Log4PostSharp to AOP-injectify all methods. This has the desired effect of logging (almost) everything and is fine.
I now have a requirement t...
Lath asked 14/4, 2010 at 11:10
1
Solved
Is is possible to get postsharp to remove references to the postsharp assemblies during a build?
I have an exe i needs to have a very small footprint. I want to use some of the compile time weavin...
1
Solved
Consider the following:
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
public class NotNullAttribute : Attribute
{
}
public class Class1
{
[return: NotNull]
public ...
Suprematism asked 15/4, 2010 at 19:16
4
Solved
how do I find out the return type of a method from the MethodBase? I'm using PostSharp and trying to override the CompileTimeValidate(MethodBase method) method to make sure the attribute is applied...
Goode asked 22/3, 2010 at 18:25
2
Solved
I am working on a project where we have several attributes in AssemblyInfo.cs, that are being multicast to methods of a particular class.
[assembly: Repeatable(
AspectPriority = 2,
AttributeTarget...
1
Solved
I'd like the aspect to exit a method invocation based on a condition like the following:
[AttributeUsage(AttributeTargets.Method)]
public class IgnoreIfInactiveAttribute : OnMethodBoundaryAspect...
2
Solved
I want to be able to apply an attribute to an interface so that every method in any class that implements that interface will have the attribute applied to it.
I assumed it would look something li...
Cichlid asked 4/3, 2010 at 4:6
4
Solved
So we all know that C# doesn't have a C-like macro pre-processor (and there's a good thread on why here). But now that AOP is gaining traction, it seems like we're starting to do stuff with post-pr...
Plath asked 5/2, 2010 at 21:55
1
When using PostSharp with a Referenced Assembly with proper PDB info( checked with chkmatch), it seems strange that the debug info gets lost by VStudio build and post compile process and I get the ...
2
Just wondering what the main differences are between these libraries, how they differ in features and functionality.
Hoping for more information than I could find with a Google query...
Bolling asked 13/10, 2009 at 1:3
1
Solved
I've got some aspect like this:
public class MyAttribute : OnMethodInvocationAspect
{
public int Offset { get; internal set; }
public MyAttribute(int offset)
{
this.Offset = offset;
}
publ...
4
Solved
I was reading through some articles on Caching and Memoization and how to implement it easily using delegates and generics. The syntax was pretty straightforward, and it is surprisingly easy to imp...
Credulity asked 4/10, 2009 at 19:44
4
I would like to ask users of the AOP framework Postsharp, what specifically are you using the framework for?
Also, I know it's use has a big negative impact on build times, but how about runtime p...
1
Solved
I'm using VS2008 and would like to create a compile time warning / error based on custom attributes on a property (if it is possible).
There are two cases which interest me currently:
[MyAttribute ...
Okoka asked 14/9, 2009 at 7:32
3
Solved
Which is the better in terms of capabilities, easy of use, documentation, samples, community/support, VS integration, known implementations, long-term viability, and build speed to implement a cust...
Hollow asked 5/9, 2009 at 9:58
1
Solved
Has anyone used PostSharp with ReSharper, if so what problems should I expect?
2
Following the advice got on another question of mine, I converted the code there quoted to be used with PostSharp:
Attribute:
[Serializable]
public sealed class InitAttribute : OnMethodBoundaryAs...
Tiltyard asked 22/7, 2009 at 13:19
3
I'm looking for interesting PostSharp aspects - anything that you found useful and wouldn't mind sharing.
6
Solved
Has anyone out there used Postsharp AOP framework in a production environment? Are there any pitfalls? In order to do some logging etc, can Postsharp be used in conjunction with Log4Net?
Any ...
1
Solved
How to create an aspect checking for null references on all methods in a class in postsharp.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test
{...
3
I just saw Ayende's post today about PostSharp. I downloaded the code and tried it out, and I thought it was the coolest, most easy to use way to handle AOP that I've seen.
In his post, Ayende sa...
3
Solved
I am considering using Postsharp framework to ease the burden of application method logging.
It basically allows me to adorn methods with logging attribute and at compile time injects the logging c...
Delrosario asked 18/9, 2008 at 11:5
© 2022 - 2024 — McMap. All rights reserved.