SlideShare a Scribd company logo
1 of 39
Introducing the Policy Injection Application Block
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Enterprise Library 3.0: New Features At a Glance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Enterprise Library 3.0 Application Blocks Caching Security Data  Access Logging Exception Handling Config Helpers  & Design Instrumen- tation Object Builder Cryptography Core Policy Injection Validation
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Context ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Mixing Business and Cross-Cutting Concerns ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sample Method Customer GetCustomerById(int id) { if (id < 0) throw new ArgumentException(&quot;Invalid Customer Id&quot;); Customer customer = HttpContext.Current.Cache.Get(id.ToString()) as Customer; if (customer != null) return customer;  try { Database db = DatabaseFactory.CreateDatabase(&quot;CRM&quot;); using (IDataReader reader = db.ExecuteReader(&quot;spGetCustomerById&quot;, id)) { if (reader.Read()) { customer = new Customer(id, reader.GetString(0), reader.GetString(1)); HttpContext.Current.Cache.Add(id.ToString(), customer, null, DateTime.Now.AddMinutes(1), Cache.NoSlidingExpiration, CacheItemPriority.Normal, null); return customer; } } return null; } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, &quot;Data Policy&quot;)) throw; return null; } }
Policy Injection Application Block Goals ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sample Method with Policy Injection [ValidationCallHandler] [CachingCallHandler(0, 1, 0)] [Tag(&quot;Data Access&quot;)] Customer GetCustomerById( [RangeValidator(0, RangeBoundaryType.Inclusive, 0, RangeBoundaryType.Ignore)]  int id) { Database db = DatabaseFactory.CreateDatabase(&quot;CRM&quot;); using (IDataReader reader = db.ExecuteReader(&quot;spGetCustomerById&quot;, id)) { if (reader.Read()) { return new Customer(id, reader.GetString(0), reader.GetString(1)); } } }
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Policy Injection Application Block Basics ,[object Object],[object Object],[object Object],[object Object]
Policy Injection Application Block Basics ,[object Object],[object Object]
Policies ,[object Object],[object Object],[object Object],[object Object]
Configuration-based Policies ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Attribute-based Policies ,[object Object],[object Object],[object Object],[object Object],[object Object],[CachingCallHandler(0, 1, 0)] [LogCallHandler(LogBeforeCall = true, LogAfterCall = false,  BeforeMessage = &quot;About to call the method&quot;)] public int DoSomething(string input) { /// }
Disabling Policies ,[object Object],[object Object],[object Object]
Interception and Injection  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Creating or wrapping objects ,[object Object],[object Object],[object Object],MyClass1 object1 = PolicyInjection.Create<MyClass>(); MyClass2 object2 = PolicyInjection.Create<MyClass>(param1, param2); IMyInterface object3 = PolicyInjection.Create<MyClass3, IMyInterface>(); MyClass1 object4 = new MyClass(); MyClass1 object4proxy = PolicyInjection.Wrap<MyClass1>(object4); IMyInterface object5 = new MyClass3(); IMyInterface object5proxy = PolicyInjection.Wrap<IMyInterface>(object5);
Interception Requirements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Calling Policy Injected Members ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],BankAccount account = PolicyInjection.Create<BankAccount>(accountId); try {  account.Withdraw(amount); } catch (Exception ex) { // do something }
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Supplied Handlers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Validation Handler  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Logging Handler ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Authorization Handler ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Exception Handling Handler ,[object Object],[object Object],[object Object],[object Object],[object Object]
Caching Handler ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Performance Counter Handler ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Supplied Matching Rules  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Effective Policy Viewer ,[object Object],[object Object],[object Object],[object Object],[object Object]
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Extensibility points ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Building Custom Matching Rules ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Building Custom Handlers ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object]
Resources  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 

More Related Content

What's hot

.NET Core, ASP.NET Core Course, Session 8
.NET Core, ASP.NET Core Course, Session 8.NET Core, ASP.NET Core Course, Session 8
.NET Core, ASP.NET Core Course, Session 8aminmesbahi
 
Informix Data Streaming Overview
Informix Data Streaming OverviewInformix Data Streaming Overview
Informix Data Streaming OverviewBrian Hughes
 
Repository Pattern in MVC3 Application with Entity Framework
Repository Pattern in MVC3 Application with Entity FrameworkRepository Pattern in MVC3 Application with Entity Framework
Repository Pattern in MVC3 Application with Entity FrameworkAkhil Mittal
 
.NET Attributes and Reflection - What a Developer Needs to Know...
.NET Attributes and Reflection - What a Developer Needs to Know....NET Attributes and Reflection - What a Developer Needs to Know...
.NET Attributes and Reflection - What a Developer Needs to Know...Dan Douglas
 
Introduction to Shib 2.0 (Chad La Joie)
Introduction to Shib 2.0 (Chad La Joie)Introduction to Shib 2.0 (Chad La Joie)
Introduction to Shib 2.0 (Chad La Joie)JISC.AM
 
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.Richard Langlois P. Eng.
 

What's hot (10)

Day4
Day4Day4
Day4
 
.NET Core, ASP.NET Core Course, Session 8
.NET Core, ASP.NET Core Course, Session 8.NET Core, ASP.NET Core Course, Session 8
.NET Core, ASP.NET Core Course, Session 8
 
Day7
Day7Day7
Day7
 
Informix Data Streaming Overview
Informix Data Streaming OverviewInformix Data Streaming Overview
Informix Data Streaming Overview
 
Day6
Day6Day6
Day6
 
Day1
Day1Day1
Day1
 
Repository Pattern in MVC3 Application with Entity Framework
Repository Pattern in MVC3 Application with Entity FrameworkRepository Pattern in MVC3 Application with Entity Framework
Repository Pattern in MVC3 Application with Entity Framework
 
.NET Attributes and Reflection - What a Developer Needs to Know...
.NET Attributes and Reflection - What a Developer Needs to Know....NET Attributes and Reflection - What a Developer Needs to Know...
.NET Attributes and Reflection - What a Developer Needs to Know...
 
Introduction to Shib 2.0 (Chad La Joie)
Introduction to Shib 2.0 (Chad La Joie)Introduction to Shib 2.0 (Chad La Joie)
Introduction to Shib 2.0 (Chad La Joie)
 
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.
Continuous Test Automation, by Richard Langlois P. Eng. and Yuri Pechenko.
 

Viewers also liked

Back to School Special: Making You & Your Library Indispensable
Back to School Special: Making You & Your Library IndispensableBack to School Special: Making You & Your Library Indispensable
Back to School Special: Making You & Your Library IndispensableThe Daring Librarian Experience
 
Adopting and Implementing an Open Access Policy: The Library's Role
Adopting and Implementing an Open Access Policy: The Library's RoleAdopting and Implementing an Open Access Policy: The Library's Role
Adopting and Implementing an Open Access Policy: The Library's RoleNASIG
 
Library management system
Library management systemLibrary management system
Library management systemRaaghav Bhatia
 
Overview of Management - Management Process
Overview of Management -  Management ProcessOverview of Management -  Management Process
Overview of Management - Management ProcessRamasubramanian H (HRS)
 
Open Source Library Automation Software - NewGenLib
Open Source Library Automation Software - NewGenLibOpen Source Library Automation Software - NewGenLib
Open Source Library Automation Software - NewGenLibVerus Solutions Pvt ltd
 
Library mangement-system
Library mangement-systemLibrary mangement-system
Library mangement-systemRafiul Rafi
 
Kvs library policy_2012_final_draft_for_feedbacks
Kvs library policy_2012_final_draft_for_feedbacksKvs library policy_2012_final_draft_for_feedbacks
Kvs library policy_2012_final_draft_for_feedbacksprateekasati
 
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...PLAI STRLC
 
Jim Morgenstern Library Strategic Planning
Jim Morgenstern Library Strategic PlanningJim Morgenstern Library Strategic Planning
Jim Morgenstern Library Strategic PlanningRebecca Jones
 
Impact of the evergreen library automation system on public library users
Impact of the evergreen library automation system on public library usersImpact of the evergreen library automation system on public library users
Impact of the evergreen library automation system on public library usersIndiana Online Users Group
 
Mlis 7505 final project submit
Mlis 7505 final project submitMlis 7505 final project submit
Mlis 7505 final project submitCrystal Thompson
 
Library management system
Library management systemLibrary management system
Library management systemAAshish Ojha
 
ITFT-Total quality mangement
ITFT-Total quality mangementITFT-Total quality mangement
ITFT-Total quality mangementniibhapratap
 
Library management system
Library management systemLibrary management system
Library management systemNi
 
Article is the iso 9000 series for total quality management (international..
Article  is the iso 9000 series for total quality management  (international..Article  is the iso 9000 series for total quality management  (international..
Article is the iso 9000 series for total quality management (international..Princess Zaza
 
Introduction to Total Library Solution- TLS
Introduction to Total Library Solution- TLSIntroduction to Total Library Solution- TLS
Introduction to Total Library Solution- TLSAta Rehman
 
The bright side of procedures in a period of crisis: acquisitions decision-ma...
The bright side of procedures in a period of crisis: acquisitions decision-ma...The bright side of procedures in a period of crisis: acquisitions decision-ma...
The bright side of procedures in a period of crisis: acquisitions decision-ma...Carlotta Alpigiano Lamioni
 

Viewers also liked (20)

Back to School Special: Making You & Your Library Indispensable
Back to School Special: Making You & Your Library IndispensableBack to School Special: Making You & Your Library Indispensable
Back to School Special: Making You & Your Library Indispensable
 
Open source Library Management Systems
Open source Library Management SystemsOpen source Library Management Systems
Open source Library Management Systems
 
Adopting and Implementing an Open Access Policy: The Library's Role
Adopting and Implementing an Open Access Policy: The Library's RoleAdopting and Implementing an Open Access Policy: The Library's Role
Adopting and Implementing an Open Access Policy: The Library's Role
 
Library management system
Library management systemLibrary management system
Library management system
 
Tqm intro 2
Tqm  intro 2Tqm  intro 2
Tqm intro 2
 
Overview of Management - Management Process
Overview of Management -  Management ProcessOverview of Management -  Management Process
Overview of Management - Management Process
 
Open Source Library Automation Software - NewGenLib
Open Source Library Automation Software - NewGenLibOpen Source Library Automation Software - NewGenLib
Open Source Library Automation Software - NewGenLib
 
Library mangement-system
Library mangement-systemLibrary mangement-system
Library mangement-system
 
Kvs library policy_2012_final_draft_for_feedbacks
Kvs library policy_2012_final_draft_for_feedbacksKvs library policy_2012_final_draft_for_feedbacks
Kvs library policy_2012_final_draft_for_feedbacks
 
Strategic Planning
Strategic PlanningStrategic Planning
Strategic Planning
 
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...
Gearing Librarians Towards Total Quality Service (with Emphasis on Personal a...
 
Jim Morgenstern Library Strategic Planning
Jim Morgenstern Library Strategic PlanningJim Morgenstern Library Strategic Planning
Jim Morgenstern Library Strategic Planning
 
Impact of the evergreen library automation system on public library users
Impact of the evergreen library automation system on public library usersImpact of the evergreen library automation system on public library users
Impact of the evergreen library automation system on public library users
 
Mlis 7505 final project submit
Mlis 7505 final project submitMlis 7505 final project submit
Mlis 7505 final project submit
 
Library management system
Library management systemLibrary management system
Library management system
 
ITFT-Total quality mangement
ITFT-Total quality mangementITFT-Total quality mangement
ITFT-Total quality mangement
 
Library management system
Library management systemLibrary management system
Library management system
 
Article is the iso 9000 series for total quality management (international..
Article  is the iso 9000 series for total quality management  (international..Article  is the iso 9000 series for total quality management  (international..
Article is the iso 9000 series for total quality management (international..
 
Introduction to Total Library Solution- TLS
Introduction to Total Library Solution- TLSIntroduction to Total Library Solution- TLS
Introduction to Total Library Solution- TLS
 
The bright side of procedures in a period of crisis: acquisitions decision-ma...
The bright side of procedures in a period of crisis: acquisitions decision-ma...The bright side of procedures in a period of crisis: acquisitions decision-ma...
The bright side of procedures in a period of crisis: acquisitions decision-ma...
 

Similar to Enterprise Library 3.0 Policy Injection Applicatoin Block

Biz Talk Demo slideshare
Biz Talk Demo slideshareBiz Talk Demo slideshare
Biz Talk Demo slideshareerios
 
Policy Injection in ASP.NET using Enterprise Library 3.0
Policy Injection in ASP.NET using Enterprise Library 3.0Policy Injection in ASP.NET using Enterprise Library 3.0
Policy Injection in ASP.NET using Enterprise Library 3.0PhilWinstanley
 
Authorization - it's not just about who you are
Authorization - it's not just about who you areAuthorization - it's not just about who you are
Authorization - it's not just about who you areDavid Brossard
 
Defending broken access control in .NET
Defending broken access control in .NETDefending broken access control in .NET
Defending broken access control in .NETSupriya G
 
Sql server lesson8
Sql server lesson8Sql server lesson8
Sql server lesson8Ala Qunaibi
 
.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9aminmesbahi
 
Refactoring legacy code: step-by-step examples
Refactoring legacy code: step-by-step examplesRefactoring legacy code: step-by-step examples
Refactoring legacy code: step-by-step examplesEndava
 
ASM Course Content.pdf
ASM Course Content.pdfASM Course Content.pdf
ASM Course Content.pdfviditsir
 
Cm3 secure code_training_1day_access_control
Cm3 secure code_training_1day_access_controlCm3 secure code_training_1day_access_control
Cm3 secure code_training_1day_access_controldcervigni
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 UsmanUsman Zafar Malik
 
OER Unit 4 Virtual Private Database
OER Unit 4 Virtual Private DatabaseOER Unit 4 Virtual Private Database
OER Unit 4 Virtual Private DatabaseGirija Muscut
 
Kaseya Connect 2011 Policy Management
Kaseya Connect 2011   Policy ManagementKaseya Connect 2011   Policy Management
Kaseya Connect 2011 Policy ManagementKaseya
 
Chapter 6 : Attack Execution (2)
Chapter 6 : Attack Execution (2)Chapter 6 : Attack Execution (2)
Chapter 6 : Attack Execution (2)Dr.Sami Khiami
 
To meet the requirements for lab 10 you were to perform Part 1, S
To meet the requirements for lab 10 you were to perform Part 1, STo meet the requirements for lab 10 you were to perform Part 1, S
To meet the requirements for lab 10 you were to perform Part 1, STakishaPeck109
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Leonard Fingerman
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworksVishwanath KC
 
CHAPTER 9 Design Considerations In this chapter you will
CHAPTER 9 Design Considerations In this chapter you willCHAPTER 9 Design Considerations In this chapter you will
CHAPTER 9 Design Considerations In this chapter you willJinElias52
 

Similar to Enterprise Library 3.0 Policy Injection Applicatoin Block (20)

Biz Talk Demo slideshare
Biz Talk Demo slideshareBiz Talk Demo slideshare
Biz Talk Demo slideshare
 
Policy Injection in ASP.NET using Enterprise Library 3.0
Policy Injection in ASP.NET using Enterprise Library 3.0Policy Injection in ASP.NET using Enterprise Library 3.0
Policy Injection in ASP.NET using Enterprise Library 3.0
 
Less11 Security
Less11 SecurityLess11 Security
Less11 Security
 
Authorization - it's not just about who you are
Authorization - it's not just about who you areAuthorization - it's not just about who you are
Authorization - it's not just about who you are
 
Defending broken access control in .NET
Defending broken access control in .NETDefending broken access control in .NET
Defending broken access control in .NET
 
Sql server lesson8
Sql server lesson8Sql server lesson8
Sql server lesson8
 
.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9.NET Core, ASP.NET Core Course, Session 9
.NET Core, ASP.NET Core Course, Session 9
 
Refactoring legacy code: step-by-step examples
Refactoring legacy code: step-by-step examplesRefactoring legacy code: step-by-step examples
Refactoring legacy code: step-by-step examples
 
Ch10 Conducting Audits
Ch10 Conducting AuditsCh10 Conducting Audits
Ch10 Conducting Audits
 
ASM Course Content.pdf
ASM Course Content.pdfASM Course Content.pdf
ASM Course Content.pdf
 
Cm3 secure code_training_1day_access_control
Cm3 secure code_training_1day_access_controlCm3 secure code_training_1day_access_control
Cm3 secure code_training_1day_access_control
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 Usman
 
OER Unit 4 Virtual Private Database
OER Unit 4 Virtual Private DatabaseOER Unit 4 Virtual Private Database
OER Unit 4 Virtual Private Database
 
Kaseya Connect 2011 Policy Management
Kaseya Connect 2011   Policy ManagementKaseya Connect 2011   Policy Management
Kaseya Connect 2011 Policy Management
 
Chapter 6 : Attack Execution (2)
Chapter 6 : Attack Execution (2)Chapter 6 : Attack Execution (2)
Chapter 6 : Attack Execution (2)
 
To meet the requirements for lab 10 you were to perform Part 1, S
To meet the requirements for lab 10 you were to perform Part 1, STo meet the requirements for lab 10 you were to perform Part 1, S
To meet the requirements for lab 10 you were to perform Part 1, S
 
Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)Test Automation Best Practices (with SOA test approach)
Test Automation Best Practices (with SOA test approach)
 
SAP BI 7 security concepts
SAP BI 7 security conceptsSAP BI 7 security concepts
SAP BI 7 security concepts
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworks
 
CHAPTER 9 Design Considerations In this chapter you will
CHAPTER 9 Design Considerations In this chapter you willCHAPTER 9 Design Considerations In this chapter you will
CHAPTER 9 Design Considerations In this chapter you will
 

Recently uploaded

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...amitlee9823
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...daisycvs
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Sheetaleventcompany
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1kcpayne
 
Phases of negotiation .pptx
 Phases of negotiation .pptx Phases of negotiation .pptx
Phases of negotiation .pptxnandhinijagan9867
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxAndy Lambert
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture conceptP&CO
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...rajveerescorts2022
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with CultureSeta Wicaksana
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Dipal Arora
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayNZSG
 

Recently uploaded (20)

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
Phases of negotiation .pptx
 Phases of negotiation .pptx Phases of negotiation .pptx
Phases of negotiation .pptx
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
Call Girls Navi Mumbai Just Call 9907093804 Top Class Call Girl Service Avail...
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 

Enterprise Library 3.0 Policy Injection Applicatoin Block

  • 1. Introducing the Policy Injection Application Block
  • 2.
  • 3.
  • 4. Enterprise Library 3.0 Application Blocks Caching Security Data Access Logging Exception Handling Config Helpers & Design Instrumen- tation Object Builder Cryptography Core Policy Injection Validation
  • 5.
  • 6.
  • 7.
  • 8. Sample Method Customer GetCustomerById(int id) { if (id < 0) throw new ArgumentException(&quot;Invalid Customer Id&quot;); Customer customer = HttpContext.Current.Cache.Get(id.ToString()) as Customer; if (customer != null) return customer; try { Database db = DatabaseFactory.CreateDatabase(&quot;CRM&quot;); using (IDataReader reader = db.ExecuteReader(&quot;spGetCustomerById&quot;, id)) { if (reader.Read()) { customer = new Customer(id, reader.GetString(0), reader.GetString(1)); HttpContext.Current.Cache.Add(id.ToString(), customer, null, DateTime.Now.AddMinutes(1), Cache.NoSlidingExpiration, CacheItemPriority.Normal, null); return customer; } } return null; } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, &quot;Data Policy&quot;)) throw; return null; } }
  • 9.
  • 10. Sample Method with Policy Injection [ValidationCallHandler] [CachingCallHandler(0, 1, 0)] [Tag(&quot;Data Access&quot;)] Customer GetCustomerById( [RangeValidator(0, RangeBoundaryType.Inclusive, 0, RangeBoundaryType.Ignore)] int id) { Database db = DatabaseFactory.CreateDatabase(&quot;CRM&quot;); using (IDataReader reader = db.ExecuteReader(&quot;spGetCustomerById&quot;, id)) { if (reader.Read()) { return new Customer(id, reader.GetString(0), reader.GetString(1)); } } }
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.  

Editor's Notes

  1. MGB 2003 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.