Permalink
Browse files

Deprecate obsolete RunProjections function

  • Loading branch information...
shaan1337 committed Jan 28, 2019
1 parent 6c220ed commit 65453a3b4c93276730d13954535bfabf3564300e
Showing with 1 addition and 35 deletions.
  1. +1 −35 src/EventStore.Core/VNodeBuilder.cs
@@ -1585,39 +1585,5 @@ private IGossipSeedSource GetGossipSource()

return nodeConfig;
}

/// <summary>
/// Sets the mode and the number of threads on which to run projections.
/// </summary>
/// <param name="projectionsMode">The mode in which to run the projections system</param>
/// <param name="numberOfThreads">The number of threads to use for projections. Defaults to 3.</param>
/// <returns>A <see cref="VNodeBuilder"/> with the options set</returns>
[Obsolete("Will be removed in 4.0, use the RunProjections method that uses EventStore.Common.Options.ProjectionType instead")]
public VNodeBuilder RunProjections(ClientAPI.Embedded.ProjectionsMode projectionsMode, int numberOfThreads = Opts.ProjectionThreadsDefault)
{
return RunProjections((ProjectionType)projectionsMode, numberOfThreads);
}
}
}
namespace EventStore.ClientAPI.Embedded
{
/// <summary>
/// Enumerates possible modes for running projections
/// </summary>
[Obsolete("Will be removed in 4.0, use the EventStore.Common.Options.ProjectionType instead")]
public enum ProjectionsMode
{
/// <summary>
/// Run no projections
/// </summary>
None,
/// <summary>
/// Run only system projections
/// </summary>
System,
/// <summary>
/// Run user and system projections
/// </summary>
All
}
}
}

0 comments on commit 65453a3

Please sign in to comment.