postsharp
Implementing INotifyPropertyChanged with PostSharp 1.5
Im new to .NET and WPF so i hope i will ask the question correctly. I am using INotifyPropertyChanged implemented using PostSharp 1.5:[详细]
2022-12-22 22:30 分类:问答How to exit a method in the OnEntry method of a PostSharp aspect based on condition
I\'d like the aspect to exit a method invocation based on a condition like the following: [AttributeUsage(AttributeTargets.Method)][详细]
2022-12-22 16:25 分类:问答Custom attribute only on specific classes
I would like to define a constrait on my custom (PostSharp) attribute. My goal is to get error or warning while compile time, if class X dont implements Y interface but it has my attribute.[详细]
2022-12-20 03:43 分类:问答Code protection and code weaving in .net
I tried to use code protection (code is encrypted and can\'t be reflected) made by clisecure with postsharp but secured dlls won\'t compile when post sharp is used in solution. I use just PostSharp.La[详细]
2022-12-19 11:54 分类:问答PostSharp - Attach to WebMethod-attribute methods only
Using PostSharp, is it possible to only \"attach\" to methods having the WebMethod-attribute? Ex: [Trace][WebService][详细]
2022-12-18 15:31 分类:问答Post sharp IL level interaction
So I\'m looking at PostSharp and I noticed that this isn\'t using runtime generated proxies but it is actually giving hints to the compilation process to include the aspects w开发者_开发百科ithin the[详细]
2022-12-17 06:01 分类:问答How do I execute a block of code with PostSharp when the application exits?
Presently, I am checking th开发者_JS百科e method name in the OnMethodBoundaryAspect.OnExit method:[详细]
2022-12-17 02:13 分类:问答Is PostSharp a good way to profile code running in production?
I would like to run profiling code against some services running in testing and production. My plan is to use PostSharp to implement a class that looks like[详细]
2022-12-17 00:00 分类:问答PostSharp 2.0 BadImageFormatException
We have an application here which is using postsharp to wrap certain methods within a transaction aspect derived from MethodInterceptionAspect. We use NHibernate 2.0 as an ORM for the application. The[详细]
2022-12-16 21:33 分类:问答PostSharp has no effect on speed
I have stumbled on an impossibly good performance behaviour with PostSharp. To evaluate the speed I wrote a little program, that would execute one function a specified number of times, and if PostShar[详细]
2022-12-16 16:11 分类:问答