postsharp
PostSharp aspect call only once per instance
I use PostSharp aspect below to validate Property of the class. [ProtoContract] public sealed class Web2Image : WebEntity[详细]
2023-04-10 13:53 分类:问答Receiving Events at Compile-Time?
How do you execute custom code at compile time? Is there an attribute you can use to markup a static method which is then executed on each build?[详细]
2023-04-05 09:48 分类:问答How can I implement a UpdateCallback on a CacheItemPolicy from another class?
I have a simple Cache attribute implemented using postsharp. When I set the cache policy I want to be able to set a update callback like below.[详细]
2023-04-05 07:11 分类:问答PostSharp handle handled exceptions
Ther开发者_如何学编程e are many Try/Catch blocks in my app to catch exceptions. I would like to read such handled exceptions and log them to a file. Is it possible to read handled exceptions with Post[详细]
2023-04-03 08:08 分类:问答external argument injection to method calls in multiple target classes
I have a number of classes that call say Trace.WriteLine(\"LogSomethingClassSpecific\"), in various methods all over the place. Now I would like some of those classes to make all their Trace calls lik[详细]
2023-04-02 13:47 分类:问答Sharing Models between ScriptSharp and MVC
I would like to share my scriptsharp models with MVC to use strongly typed JSON response from my controllers to the javascript code and vise versa.[详细]
2023-04-01 16:18 分类:问答how to apply a Postsharp aspect solution wide (all classes in namespace)
I am trying to modify the sample trace app that ships with Postsharp so that the trace is applied to all classes in my namespace w开发者_开发技巧ithout explicitly putting the [QuickTrace] on top of ea[详细]
2023-03-31 14:40 分类:问答PostSharp Starter Edition - How to add license to a project
I have downloaded and installed the starter edition of postsharp and have entered my license key for postsharp on my machine using PostSharp 2.0 User options.When I check the project in and it runs 开[详细]
2023-03-29 12:44 分类:问答Is it wise to use AppFabric + Postsharp for server side caching
One of开发者_JAVA百科 my friends wants to use AppFabric caching on server side (WCF services). But to reduce similar functionality across services code, he wants to cache data \"automatically\" using[详细]
2023-03-27 13:52 分类:问答postsharp in assembly
I have an postsharp attribute for handling exceptions in a entire dll ( that ddl is provided by other team) and manage database calls.[详细]
2023-03-24 08:05 分类:问答