Skip to content

Commit

Permalink
Applied EditorBrowsable to now obsoleted aggregation types
Browse files Browse the repository at this point in the history
  • Loading branch information
gfoidl committed Nov 17, 2023
1 parent 0400be2 commit 1f79c8b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Marten/Events/Aggregation/CustomProjection.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
using JasperFx.CodeGeneration;
Expand Down Expand Up @@ -211,6 +212,7 @@ public void AggregateByStream()
}
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to CustomProjection<TDoc, TId> with the exact same syntax")]
public abstract class CustomAggregation<TDoc, TId>: CustomProjection<TDoc, TId>
{
Expand Down
3 changes: 3 additions & 0 deletions src/Marten/Events/Aggregation/SingleStreamProjection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel;
using JasperFx.CodeGeneration;
using JasperFx.Core.Reflection;
using Marten.Schema;
Expand Down Expand Up @@ -72,11 +73,13 @@ yield return
}
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to SingleStreamProjection<T> with the exact same syntax")]
public class SingleStreamAggregation<T>: SingleStreamProjection<T>
{
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to SingleStreamProjection<T> with the exact same syntax")]
public class AggregateProjection<T>: SingleStreamProjection<T>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using JasperFx.CodeGeneration;
Expand Down Expand Up @@ -96,6 +97,7 @@ protected override Type baseTypeForAggregationRuntime()
}
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to ExperimentalMultiStreamProjection<TDoc, TId> with the exact same syntax")]
public abstract class ExperimentalMultiStreamAggregation<TDoc, TId>: ExperimentalMultiStreamProjection<TDoc, TId>
{
Expand Down
3 changes: 3 additions & 0 deletions src/Marten/Events/Projections/MultiStreamProjection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using JasperFx.CodeGeneration;
using JasperFx.Core.Reflection;
Expand Down Expand Up @@ -158,11 +159,13 @@ protected override Type baseTypeForAggregationRuntime()
}
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to MultiStreamProjection<T> with the exact same syntax")]
public abstract class MultiStreamAggregation<TDoc, TId>: MultiStreamProjection<TDoc, TId>
{
}

[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Please switch to MultiStreamProjection<T> with the exact same syntax")]
public abstract class ViewProjection<TDoc, TId>: MultiStreamProjection<TDoc, TId>
{
Expand Down
2 changes: 2 additions & 0 deletions src/Marten/Events/Projections/ProjectionOptions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using JasperFx.Core;
using JasperFx.Core.Reflection;
Expand Down Expand Up @@ -153,6 +154,7 @@ internal IProjection[] BuildInlineProjections(DocumentStore store)
/// projection within the async projection daempon
/// </param>
/// <returns>The extended storage configuration for document T</returns>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(
"Please switch to Snapshot (in case of inline or async lifecycle) or LiveStreamAggregation method (for online lifecycle).")]
public MartenRegistry.DocumentMappingExpression<T> SelfAggregate<T>(
Expand Down
2 changes: 2 additions & 0 deletions src/Marten/MartenServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -626,6 +627,7 @@ public MartenConfigurationExpression AddAsyncDaemon(DaemonMode mode)
/// at runtime.
/// </summary>
/// <returns></returns>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete(
"Please prefer the InitializeWith() approach for applying start up actions to a DocumentStore. This should not be used in combination with the asynchronous projections. WILL BE REMOVED IN MARTEN V6.")]
public IDocumentStore InitializeStore()
Expand Down

0 comments on commit 1f79c8b

Please sign in to comment.