Skip to content

Commit

Permalink
added SolrDIHStatusParser to all container modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Feb 19, 2011
1 parent d306143 commit 8aabdc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AutofacContrib.SolrNet/SolrNetModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

using Autofac;
using SolrNet;
using SolrNet.DIH;
using SolrNet.Impl;
using SolrNet.Impl.DocumentPropertyVisitors;
using SolrNet.Impl.FacetQuerySerializers;
Expand Down Expand Up @@ -79,6 +80,7 @@ protected override void Load(ContainerBuilder builder)
.As(typeof(ISolrOperations<>), typeof(ISolrReadOnlyOperations<>))
.SingleInstance();
builder.RegisterType<SolrSchemaParser>().As<ISolrSchemaParser>();
builder.RegisterType<SolrDIHStatusParser>().As<ISolrDIHStatusParser>();
builder.RegisterType<MappingValidator>().As<IMappingValidator>();
}
}
Expand Down
2 changes: 2 additions & 0 deletions Ninject.Integration.SolrNet/SolrNetModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
using SolrNet.Mapping.Validation;
using SolrNet.Mapping.Validation.Rules;
using SolrNet.Schema;
using SolrNet.DIH;

namespace Ninject.Integration.SolrNet {
public class SolrNetModule : NinjectModule {
Expand Down Expand Up @@ -75,6 +76,7 @@ public override void Load() {
Bind(typeof(ISolrOperations<>)).To(typeof(SolrServer<>));
Bind(typeof(ISolrReadOnlyOperations<>)).To(typeof(SolrServer<>));
Bind<ISolrSchemaParser>().To<SolrSchemaParser>();
Bind<ISolrDIHStatusParser>().To<SolrDIHStatusParser>();
Bind<IMappingValidator>().To<MappingValidator>();
}
}
Expand Down
2 changes: 2 additions & 0 deletions StructureMap.SolrNetIntegration/SolrNetRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Configuration;
using SolrNet;
using SolrNet.DIH;
using SolrNet.Exceptions;
using SolrNet.Impl;
using SolrNet.Impl.DocumentPropertyVisitors;
Expand Down Expand Up @@ -88,6 +89,7 @@ private void RegisterParsers() {
For(typeof(ISolrQueryResultParser<>)).Use(typeof(SolrQueryResultParser<>));
For<ISolrFieldParser>().Use<DefaultFieldParser>();
For<ISolrSchemaParser>().Use<SolrSchemaParser>();
For<ISolrDIHStatusParser>().Use<SolrDIHStatusParser>();
}

/// <summary>
Expand Down

0 comments on commit 8aabdc7

Please sign in to comment.