/// <summary> /// Executes the transformer creation /// </summary> public virtual void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask) { transformerCreationTask.Execute(DatabaseCommands, Conventions); }
public void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask) { Inner.ExecuteTransformer(transformerCreationTask); }
public Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask) { return Inner.ExecuteTransformerAsync(transformerCreationTask); }
public Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask) { return server.DocumentStore.ExecuteTransformerAsync(transformerCreationTask); }
/// <summary> /// Executes the transformer creation /// </summary> public void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask) { server.DocumentStore.ExecuteTransformer(transformerCreationTask); }
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; }); }
/// <summary> /// Executes the transformer creation /// </summary> public override void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask) { var list = ShardStrategy.Shards.Values.Select(x => x.DatabaseCommands).ToList(); ShardStrategy.ShardAccessStrategy.Apply(list, new ShardRequestData() , (commands, i) => { transformerCreationTask.Execute(commands, Conventions); return (object)null; }); }
public virtual Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask) { return transformerCreationTask.ExecuteAsync(AsyncDatabaseCommands, Conventions); }