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); }
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)); }
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)); }