ExecuteAsync() public method

Executes the index creation against the specified document store.
public ExecuteAsync ( IAsyncDatabaseCommands asyncDatabaseCommands, DocumentConvention documentConvention ) : System.Threading.Tasks.Task
asyncDatabaseCommands IAsyncDatabaseCommands
documentConvention Raven.Client.Document.DocumentConvention
return System.Threading.Tasks.Task
		public override Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask)
        {
            var list = ShardStrategy.Shards.Values.Select(x => x.AsyncDatabaseCommands).ToList();
            return ShardStrategy.ShardAccessStrategy.ApplyAsync(list,
                                                            new ShardRequestData()
                                                            , (commands, i) =>
                                                            {
                                                                var tcs = new TaskCompletionSource<bool>();

                                                                try
                                                                {
                                                                    transformerCreationTask.ExecuteAsync(commands, Conventions)
                                                                        .ContinueWith(t => tcs.SetResult(true));
                                                                }
                                                                catch (Exception e)
                                                                {
                                                                    tcs.SetException(e);
                                                                }

                                                                return tcs.Task;
                                                            });
        }
	    public virtual Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask)
	    {
	        return transformerCreationTask.ExecuteAsync(AsyncDatabaseCommands, Conventions);
	    }