コード例 #1
0
ファイル: SearchWriteClient.cs プロジェクト: arborQ/Alpaki
 public SearchWriteClient(SearchClientConfiguration searchClientConfiguration)
 {
     _searchIndexClient = new SearchIndexClient(new Uri(searchClientConfiguration.EndPoint), new AzureKeyCredential(searchClientConfiguration.ApiKey));
 }
コード例 #2
0
        public static IServiceCollection InstallSearchEngine(this IServiceCollection serviceCollection, SearchClientConfiguration searchClientConfiguration)
        {
            serviceCollection.AddSingleton(searchClientConfiguration);
            serviceCollection.AddTransient <ISearchWriteClient, SearchWriteClient>();

            return(serviceCollection);
        }