Business Processes
------------------
By design decision, client layers get access to entities and modify these entities only
through business processes.
Typical activities of a business process is to:
- Execute business rules validating this current business process instance, using
the Business Rules Manager (PostSharp.Samples.Librarian.Framework.BusinessRulesManager).
- Execute CRUD operations on entities (using the data layer).
- Eventually invoke other business processes.
Business processes should execute in a transaction. The [Transaction] custom attribute
should be applied to any method doing write access to the data layer. When a custom
attribute cannot be applied, business processes can use the TransactionScope class
of the System.Transactions namespace.
Business Rules
--------------
The namespace PostSharp.Samples.Librarian.BusinessRules contains *validation* business rules. Validation
business rules are simply conditions that can evaluate to true (if the rule is fulfilled) or
false (if the rule is broken).
Validation business rules are invoked by the process layer. The
process layer does not know explicitely which rules should be invoked.
Instead, it raises a 'validation event' with a parameter (typically
the entity being modified).
Business rules should be derived from the class PostSharp.Samples.Librarian.Framework.BusinessRule.
Additionally, they should indicate to which validation event they wish
to react. They do this using the [BusinessRuleAppliesTo] custom attribute.
Business rules are managed by the class PostSharp.Samples.Librarian.Framework.BusinessRulesManager.
User code does not address directly busines rules.
Session and Session Factory
---------------------------
In order to get a 'Business Process' interface, the client should:
1. Get a Session Factory (typically by using explicitely Activator.GetObject).
2. Use this Session Factory to get a session by submitting credentials.
3. The session objects gets instances of business services.
We bind services to sessions in order to manage authentication and context information.
This approach is not ideal for internet applications but in our case this is not
a problem.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Postsharp 是C#最知名的AOP框架, 最初是开源项目,目前已经商业化运作,网络上很难找到源代码,这里提供PostSharp 早起版本的源代码,以供学习。ostSharp是一种Aspect Oriented Programming 面向切面(或面向方面)的组件框架,适用在.NET开发中,Postsharp在.NET开发中的相关知识,以及一些如日志、缓存、事务处理、异常处理等常用的切面处理操作。
资源推荐
资源详情
资源评论
收起资源包目录
PostSharp source code 源代码 (1018个子文件)
#revision 11B
#revision 11B
#revision 11B
#revision 11B
#revision 11B
#revision 11B
#revision 11B
postcompile.bat 155B
test.bat 62B
browser-112.bmp 1KB
browser-010.bmp 1KB
browser-003.bmp 1KB
browser-072.bmp 1KB
browser-056.bmp 1KB
browser-040.bmp 1KB
browser-101.bmp 1KB
browser-110.bmp 1KB
browser-065.bmp 1KB
browser-049.bmp 1KB
browser-018.bmp 1KB
browser-103.bmp 1KB
browser-041.bmp 1KB
browser-085.bmp 1KB
browser-033.bmp 1KB
browser-017.bmp 1KB
browser-060.bmp 1KB
browser-064.bmp 1KB
browser-120.bmp 1KB
browser-118.bmp 1KB
browser-053.bmp 1KB
browser-087.bmp 1KB
browser-070.bmp 1KB
browser-023.bmp 1KB
browser-012.bmp 1KB
browser-042.bmp 1KB
browser-091.bmp 1KB
browser-029.bmp 1KB
browser-046.bmp 1KB
browser-104.bmp 1KB
browser-048.bmp 1KB
browser-078.bmp 1KB
browser-028.bmp 1KB
browser-020.bmp 1KB
browser-066.bmp 1KB
browser-006.bmp 1KB
browser-069.bmp 1KB
browser-044.bmp 1KB
browser-052.bmp 1KB
browser-022.bmp 1KB
browser-084.bmp 1KB
browser-111.bmp 1KB
browser-001.bmp 1KB
browser-114.bmp 1KB
browser-059.bmp 1KB
browser-074.bmp 1KB
browser-096.bmp 1KB
browser-102.bmp 1KB
browser-051.bmp 1KB
browser-097.bmp 1KB
browser-004.bmp 1KB
browser-045.bmp 1KB
browser-025.bmp 1KB
browser-039.bmp 1KB
browser-021.bmp 1KB
browser-088.bmp 1KB
browser-037.bmp 1KB
browser-106.bmp 1KB
browser-098.bmp 1KB
browser-024.bmp 1KB
browser-055.bmp 1KB
browser-079.bmp 1KB
browser-093.bmp 1KB
browser-076.bmp 1KB
browser-089.bmp 1KB
browser-019.bmp 1KB
browser-031.bmp 1KB
browser-063.bmp 1KB
browser-011.bmp 1KB
browser-092.bmp 1KB
browser-007.bmp 1KB
browser-071.bmp 1KB
browser-117.bmp 1KB
browser-095.bmp 1KB
browser-100.bmp 1KB
browser-067.bmp 1KB
browser-038.bmp 1KB
browser-109.bmp 1KB
browser-014.bmp 1KB
browser-073.bmp 1KB
browser-116.bmp 1KB
browser-050.bmp 1KB
browser-032.bmp 1KB
browser-026.bmp 1KB
browser-015.bmp 1KB
browser-090.bmp 1KB
browser-035.bmp 1KB
browser-054.bmp 1KB
browser-107.bmp 1KB
browser-108.bmp 1KB
browser-082.bmp 1KB
共 1018 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
weixin_38088411
- 粉丝: 2
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- SDN相关软件包,ryn控制器,python环境等
- 基于PWM方法控制音调,支持高、低两个阶段的音调
- 524springboot + vue 在线动漫信息平台.zip(可运行源码+数据库文件+文档)
- 基于QT+QML+C++实现的显示fps帧率的控件+源码
- Java毕业设计-基于Springboot+Vue水果购物网站源码+数据库+PPT文档+演示视频(高分项目).zip
- AT Disk Imager 一个可以自动烧录树莓派镜像的软件
- 523springboot + vue 点餐平台网站.zip(可运行源码+数据库文件+文档)
- 4-2-2.zip
- 522springboot + vue 租房网站.zip(可运行源码+数据库文件+文档)
- Java毕业设计-基于Springboot+Vue大学生竞赛管理系统-源码+数据库+演示视频(高分项目).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功