.net セキュリティの最大の欠点の 1 つは、セキュリティ アノテーションが mvc コントローラーの外部に存在しないことです。
CustomerController
コールCustomerService
コールCustomerRepository
上記のそれぞれは、異なる dll にあります。CustomerService
ではなく注釈で保護したいCustomerController
。
- サービススタックで行うことは可能ですか? それは良い習慣ですか?
- servicestack を使用した n 層アーキテクチャの例はありますか?
ありがとう