LogHandlerAttribute.cs 452 B

123456789101112131415
  1. using Unity;
  2. using SHJX.Service.Common.Interceptor.Handlers;
  3. using Unity.Interception.PolicyInjection.Pipeline;
  4. using Unity.Interception.PolicyInjection.Policies;
  5. namespace SHJX.Service.Common.Interceptor.HandlerAttributes
  6. {
  7. public class LogHandlerAttribute : HandlerAttribute
  8. {
  9. public override ICallHandler CreateHandler(IUnityContainer container)
  10. {
  11. return new LogHandler() { Order = Order };
  12. }
  13. }
  14. }