protected override void Load(ContainerBuilder builder) { builder.Register(c => { IComparer <IPoint> comparer = new PPMComparer(Tolerance); ISearch matcher = new BinarySearch(comparer); return(new GeneralPrecursorMatcher(matcher, c.Resolve <IGlycoPeptideCreator>())); }).As <IPrecursorMatcher>(); }
protected override void Load(ContainerBuilder builder) { builder.Register(c => { IComparer <IPoint> comparer = new PPMComparer(Tolerance); ISearch matcherSpectrum = new BinarySearch(comparer); return(new GeneralMonoMassSpectrumGetter(matcherSpectrum, MaxIsotop)); }).As <IMonoMassSpectrumGetter>(); }