Skip to content

relyky/SheepAspectLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SheepAspectLab

AOP模組 SheepAspect 練習
已知在C# 除了PostSharp 外,個人認為最好的 AOP solution。

參考

CodePlex-SheepAspect(已過時)
nuget-SheepAspect
Aspect-Oriented Programming for .NET(改由此維護)
.NET中AOP方便之神SheepAspect
SheepAOP Part 1 – Getting Started
SheepAOP Part 2 – Pointcut and

一些開發說明

雖 SheepAspect 很有彈性,因是向 AspectJ 取經的關係。
但應用原則上: 1 Advice(Aspect instance) ←→ 1 Pointcut ←→ 1 Attribute ←→ N 纏繞目標
等同 => 1 Aspect ←→ N 纏繞目標
利用 Attribute 纏繞目標即可,讓“纏繞”精簡化才符合 AOP 的初心。

About

AOP模組 SheepAspect 練習

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages