Exemple #1
0
        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>();
        }
Exemple #2
0
        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>();
        }