Skip to content

code-patterns 3.4.0-beta

Pre-release
Pre-release

Choose a tag to compare

@TheTribe TheTribe released this 12 Oct 13:09
· 153 commits to master since this release
  • New logging components in Patterns.Logging (new dependency: Castle.Core):
    • LoggingInterceptor → implements IInterceptor by calling the appropriate ILog methods throughout interception (issue 12)
    • string Exception.ToFullString() (extension) → concatenates exception messages, stack traces and inner exceptions (recursive)
  • New Autofac support for Patterns.Logging in Patterns.Autofac.Modules:
    • LoggingModule → registers LoggingInterceptor, as well as attaching to all registrations in order to provide appropriately type-bound instances of ILog on-demand
  • New Autofac container type for increased accessibility: Patterns.Autofac.AccessibleContainer
  • New Moq / IoC components in Patterns.Testing.Moq:
    • IMoqContainer (depends on Microsoft.Practices.ServiceLocation and Moq) → exposes IServiceLocator; provides full IoC container support; provides Mock{TObject} creation support
    • MoqRegistrationSource → implements Autofac's IRegistrationSource by creating Mocks of services when registrations are missing
    • MoqContainer → implements IMoqContainer by using Autofac with MoqRegistrationSource