Skip to content

Commit

Permalink
added entry to README.md and usage example to Initialization.md
Browse files Browse the repository at this point in the history
  • Loading branch information
João Martins committed Sep 11, 2018
1 parent f0d8335 commit 1729c27
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Documentation/Initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,17 @@ container = new UnityContainer();
new SolrNetContainerConfiguration().ConfigureContainer(solrServers, container);
```

### SimpleInjector
``` PowerShell
Install-Package SolrNet.SimpleInjector
```
![https://www.nuget.org/packages/SolrNet.SimpleInjector/](https://img.shields.io/nuget/v/SolrNet.SimpleInjector.svg)

```C#
Create or use an existing SimpleInjector Container and add Solr by passing its URL:
var container = new SimpleInjector.Container();
container.AddSolrNet("http://localhost:8983/solr");
```

### Multi-core mapping
If you need to map multiple Solr cores/instances, see [this page](Multi-core-instance.md).
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="System.Net.Http" Version="4.0.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.0.0" />
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The easiest way to get going is to use our NuGet packages:
|[SolrNet.Unity](https://www.nuget.org/packages/SolrNet.Unity/)| [Unity](https://github.com/unitycontainer/unity) | 4.6 | 2.0 |
|[SolrNet.Autofac](https://www.nuget.org/packages/SolrNet.Autofac/)| [Autofac](https://autofac.org/) | 4.6 | 2.0 |
|[SolrNet.NHibernate](https://www.nuget.org/packages/SolrNet.NHibernate/)| [NHibernate](http://nhibernate.info/) | 4.6 | - |
|[SolrNet.SimpleInjector](https://www.nuget.org/packages/SolrNet.SimpleInjector/)| [SimpleInjector](https://simpleinjector.org/) | 4.6 | 2.0 |

#### SolrCloud

Expand Down

0 comments on commit 1729c27

Please sign in to comment.