internal BasedOnDescriptor(Type basedOn, FromDescriptor from, Predicate<Type> additionalFilters) { this.basedOn = basedOn; this.from = from; //this.service = new ServiceDescriptor(this); this.If(additionalFilters); }
public override void InstallFeatures(FromDescriptor from) { var mvcControllers = from .BasedOn(typeof(IController)) .If(controller => controller.Is <IContextual>()) .LifestyleCustom <ContextualLifestyleManager>() .WithServiceSelf(); if (_configureMvc != null) { mvcControllers.Configure(_configureMvc); } var apiControllers = from .BasedOn(typeof(IHttpController)) .If(controller => controller.Is <IContextual>()) .LifestyleCustom <ContextualLifestyleManager>() .WithServiceSelf(); if (_configureApi != null) { apiControllers.Configure(_configureApi); } }
private BasedOnDescriptor Locate(FromDescriptor fromDescriptor) { return(_serviceDescriptor(fromDescriptor.BasedOn <T>().WithService)); }
public MapperInstaller(FromDescriptor classes) { this.classes = classes; }