コード例 #1
0
        public override Task<bool> Run()
        {

            // Run the task
            UpdateIndexTask task = new UpdateIndexTask()
            {
                SqlConnectionString = PackageDatabase.ConnectionString,
                StorageAccount = DataStorageAccount,
                Container = ContainerName,
                DataContainer = DataContainerName,
            };
            task.Execute();
            return Task.FromResult(true);
        }
コード例 #2
0
        public override Task <bool> Run()
        {
            // Run the task
            UpdateIndexTask task = new UpdateIndexTask()
            {
                SqlConnectionString = PackageDatabase.ConnectionString,
                StorageAccount      = DataStorageAccount,
                Container           = ContainerName,
                DataContainer       = DataContainerName,
            };

            task.Execute();
            return(Task.FromResult(true));
        }
コード例 #3
0
        protected internal override Task Execute()
        {
            // Run the task
            UpdateIndexTask task = new UpdateIndexTask()
            {
                SqlConnectionString = PackageDatabase.ConnectionString,
                StorageAccount      = StorageAccount,
                Container           = String.IsNullOrEmpty(LocalIndexFolder) ?
                                      (IndexContainerName ?? "ng-search") :
                                      null,
                DataContainer = DataContainerName,
                Folder        = LocalIndexFolder,
                Log           = new EventSourceWriter(Log.IndexingTrace),
            };

            task.Execute();

            return(Task.FromResult(0));
        }