Esempio n. 1
0
        public T Create(IServiceCollection services, T service, IAspect aspect)
        {
            aspect.OnCreate(services.GetServiceType(service.GetType()));

            var proxy = Create <T, AspectProxy <T> >();

            (proxy as AspectProxy <T>)._service = service;
            (proxy as AspectProxy <T>)._aspect  = aspect;
            return(proxy);
        }
Esempio n. 2
0
 public override void OnCreate(Type createdType)
 {
     handler.OnCreate(createdType);
 }
Esempio n. 3
0
 public void OnCreate(Type createdType)
 {
     handler.OnCreate(createdType);
 }