Skip to content

[CS0618][IWithboundedStash] Warning disable #6669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/core/Akka.Tests/Actor/Stash/ActorWithBoundedStashSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

namespace Akka.Tests.Actor.Stash
{
#pragma warning disable CS0618 // Type or member is obsolete
public class StashingActor : UntypedActor, IWithBoundedStash
#pragma warning restore CS0618 // Type or member is obsolete
{
public IStash Stash { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/core/Akka.Tests/Actor/Stash/ActorWithStashSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ private class UnboundedStashActor : BlackHoleActor, IWithUnboundedStash
public IStash Stash { get; set; }
}

#pragma warning disable CS0618 // Type or member is obsolete
private class BoundedStashActor : BlackHoleActor, IWithBoundedStash
#pragma warning restore CS0618 // Type or member is obsolete
{
public IStash Stash { get; set; }
}
Expand Down
2 changes: 2 additions & 0 deletions src/core/Akka.Tests/Actor/StashMailboxSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ private class UnboundedStashActor : BlackHoleActor, IWithUnboundedStash
{
public IStash Stash { get; set; }
}
#pragma warning disable CS0618 // Type or member is obsolete
private class BoundedStashActor : BlackHoleActor, IWithBoundedStash
#pragma warning restore CS0618 // Type or member is obsolete
{
public IStash Stash { get; set; }
}
Expand Down
2 changes: 2 additions & 0 deletions src/core/Akka/Actor/Stash/StashFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ public static IStash CreateStash(this IActorContext context, IActorStash actorIn
/// <returns>TBD</returns>
public static IStash CreateStash(this IActorContext context, Type actorType)
{
#pragma warning disable CS0618 // Type or member is obsolete
if (actorType.Implements<IWithBoundedStash>())
return new BoundedStashImpl(context);
#pragma warning restore CS0618 // Type or member is obsolete

if (actorType.Implements<IWithUnboundedStash>())
return new UnboundedStashImpl(context);
Expand Down