postsharp
PostSharp: initialize instance-scoped aspect after target constructors
I have written an aspect implementing IInstanceScopedAspect and inheriting from LocationInterceptionAspect.[详细]
2023-03-23 15:40 分类:问答aop eventinterceptionaspect postsharp
What would be the best practice to implement save/restore layout funcionality for every DeveloperExpress XtraGrid control in my application. I use开发者_StackOverflow a lot of Grid visual elements on[详细]
2023-03-22 21:40 分类:问答Which are the most suitable languages to apply Aspect's Theme approach?
I am thinking about reading Aspect-Oriented Analysis and Design: The Theme Approach, yet I am hesitant. Is it possible to use what\'s taught in the book with AspectJ (for Java) or Post# in C#? Maybe w[详细]
2023-03-16 22:28 分类:问答How do you give a C# Auto-Property a default value using a custom attribute?
How do you give a C# Auto-Property a default value, using a custom attribute? This is the code I want to see:[详细]
2023-03-14 12:05 分类:问答PostSharp OnMethodBoundaryAspect OnEntry Not Executing
I am running a .NET 4.0 Web Application (not web site) and PostSharp 1.5. I cannot get the OnEntry override method to execute using the OnMethodBoundaryAspect base class. Here is some relevant code:[详细]
2023-03-13 08:06 分类:问答PostSharp - Dynamic Cache Keys
I am trying the CacheAttribute feature of PostSharp. Following is the method I am using to build cache keys for each cache entry.[详细]
2023-03-12 07:52 分类:问答Is there a repository/library of ready-to-use postsharp aspects?
I\'m about to start using PostSharp in my project. I\'d like to leverage existing aspects. Is there a repository or a list of ready-to-use, 开发者_运维百科user contributed, postsharp aspects? Somethin[详细]
2023-03-11 22:46 分类:问答C# log question
Does someone know any way to organize the logging statements more conveniently?开发者_C百科 I guess there is no such way, but, well, here is a small example:[详细]
2023-03-03 14:00 分类:问答Using PostSharp to intercept ADO.Net
I have quite a large code base using a variety of different ADO technologies (i.e. some EF and in some cases using ADO.Net directly).[详细]
2023-03-03 00:28 分类:问答PostSharp aspect resolving type
We are using dependency inje开发者_如何学Goction with and IoC (Unity) and now I want to make an aspect with PostSharp that would basically log enter/exit of a method. My problem is that my logger is c[详细]
2023-02-27 02:19 分类:问答