Click here to Skip to main content
15,893,668 members
Articles / Web Development / ASP.NET

Application Design for Cross Cutting Concerns (like Caching, Logging etc..) using DI Framework

Rate me:
Please Sign up or sign in to vote.
4.50/5 (6 votes)
27 Sep 2010CPOL4 min read 27.8K   393   19  
Ability to plugin the application's cross cutting concerns using Dependency Injection framework
  • cachingsample.zip
    • CachingSample
      • Cache.Interfaces
      • Cache.Memcached
      • CacheProviders.AspNet
      • CacheProviders.NorthScaleMemcached
      • CachingSample.sln
      • CachingSample.suo
      • CachingSample
        • App.config
        • bin
        • CachingSample.csproj
        • Program.cs
        • Properties
        • Service References
          • ServiceReference1
            • BT.disco
            • BT.xsd
            • BT1.xsd
            • BT2.xsd
            • BT3.xsd
            • BT4.xsd
            • BT5.xsd
            • BT6.xsd
            • CachingSample.ServiceReference1.Contract.datasource
            • CachingSample.ServiceReference1.EventHandlers.datasource
            • CachingSample.ServiceReference1.KCI.datasource
            • CachingSample.ServiceReference1.OSSAction.datasource
            • CachingSample.ServiceReference1.ProdAvailabilityError.datasource
            • CachingSample.ServiceReference1.ProdRules.datasource
            • CachingSample.ServiceReference1.ProductAssetValue.datasource
            • CachingSample.ServiceReference1.ProductAttributeValues.datasource
            • CachingSample.ServiceReference1.ProductCatalog.datasource
            • CachingSample.ServiceReference1.ProductCategory.datasource
            • CachingSample.ServiceReference1.ProductCeaseReasonSalesChannelMapping.datasource
            • CachingSample.ServiceReference1.ProductContractMapping.datasource
            • CachingSample.ServiceReference1.ProductDefinition.datasource
            • CachingSample.ServiceReference1.ProductDefinitionAttribute.datasource
            • CachingSample.ServiceReference1.ProductDefinitionBillingType.datasource
            • CachingSample.ServiceReference1.ProductDefinitionDependancy.datasource
            • CachingSample.ServiceReference1.ProductDefinitionFeatures.datasource
            • CachingSample.ServiceReference1.ProductDefinitionRole.datasource
            • CachingSample.ServiceReference1.ProductDefinitionStatusHistory.datasource
            • CachingSample.ServiceReference1.ProductFamilyAssociations.datasource
            • CachingSample.ServiceReference1.ProductFamilyDefinitions.datasource
            • CachingSample.ServiceReference1.ProductGroupDefinition.datasource
            • CachingSample.ServiceReference1.ProductLeadTimeOverride.datasource
            • CachingSample.ServiceReference1.ProductPrice.datasource
            • CachingSample.ServiceReference1.ProductPriceRuleMapping.datasource
            • CachingSample.ServiceReference1.ProductRiskValue.datasource
            • CachingSample.ServiceReference1.ProductSalesRelationship.datasource
            • CachingSample.ServiceReference1.RegradeOptions.datasource
            • CachingSample.ServiceReference1.ResellerProductHierarchy.datasource
            • CachingSample.ServiceReference1.RoleActionOSSMapping.datasource
            • CachingSample.ServiceReference1.SalesChannel.datasource
            • CachingSample.ServiceReference1.TermsAndConditions.datasource
            • CachingSample.ServiceReference1.UIEvents.datasource
            • CachingSample.ServiceReference1.UIModules.datasource
            • CachingSample.ServiceReference1.UIProdJourney.datasource
            • CachingSample.ServiceReference1.UIProductSteps.datasource
            • CachingSample.ServiceReference1.UISteps.datasource
            • CachingSample.ServiceReference1.UIStepsEvents.datasource
            • CachingSample.ServiceReference1.UIStepsModules.datasource
            • configuration.svcinfo
            • configuration91.svcinfo
            • ProductService.wsdl
            • Reference.cs
            • Reference.svcmap
      • Libraries
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
I have around 9 years of experience in Microsoft technologies, .Net 2.0,3.5, Asp.net MVC developed small to medium scale products using Silverlight 2.0, Asp.net Ajax technologie and Javascript frameworks.

Comments and Discussions