Inheritance: AbstractCommonApiForIndexesAndTransformers
Exemplo n.º 1
0
		/// <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);
 }
Exemplo n.º 4
0
 public Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask)
 {
     return server.DocumentStore.ExecuteTransformerAsync(transformerCreationTask);
 }
Exemplo n.º 5
0
	    /// <summary>
        ///     Executes the transformer creation
        /// </summary>
        public void ExecuteTransformer(AbstractTransformerCreationTask transformerCreationTask)
        {
            server.DocumentStore.ExecuteTransformer(transformerCreationTask);
        }
Exemplo n.º 6
0
		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;
                                                            });
        }
Exemplo n.º 7
0
		/// <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;
															});
		}
Exemplo n.º 8
0
	    public virtual Task ExecuteTransformerAsync(AbstractTransformerCreationTask transformerCreationTask)
	    {
	        return transformerCreationTask.ExecuteAsync(AsyncDatabaseCommands, Conventions);
	    }