NEST2 initialization on .NET C# WebAPI
问题 I defined the NEST2 client dependencies like this: container.RegisterType<IElasticClient, ElasticClient>( new InjectionConstructor( new ResolvedParameter<IConnectionSettingsValues>(), new OptionalParameter<IConnection>(), new OptionalParameter<IElasticsearchSerializer>(), new OptionalParameter<ITransport>())); I was using NEST and ElasticSearch. Now I moved to NEST 2 and ElasticSearch 2 and I had to change INestSerializer into IElasticsearchSerializer Unfortunately now I've got this error on