Пример #1
0
        static void Main(string[] args)
        {
            Client           = SearchConfiguration.GetClient();
            DumpReader       = new MovieDumpReader();
            CurrentIndexName = SearchConfiguration.CreateIndexName();

            CreateIndex();
            IndexDumps();
            SwapAlias();

            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
Пример #2
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddControllersWithViews();
     services.Add(ServiceDescriptor.Singleton <IElasticClient>(SearchConfiguration.GetClient()));
 }