Skip to content

Commit

Permalink
[CS0618] GraphInterpreterSpecKit (#6697)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaba authored May 17, 2023
1 parent 1345e58 commit 88be1fc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -980,13 +980,17 @@ public OneBoundedSetup(ActorSystem system, params IGraphStageWithMaterializedVal
}
}

#pragma warning disable CS0618 // Type or member is obsolete
public PushPullGraphStage<TIn, TOut> ToGraphStage<TIn, TOut>(IStage<TIn, TOut> stage)
#pragma warning restore CS0618 // Type or member is obsolete
{
var s = stage;
return new PushPullGraphStage<TIn, TOut>(_ => s, Attributes.None);
}

#pragma warning disable CS0618 // Type or member is obsolete
public IGraphStageWithMaterializedValue<Shape, object>[] ToGraphStage<TIn, TOut>(IStage<TIn, TOut>[] stages)
#pragma warning restore CS0618 // Type or member is obsolete
{
return stages.Select(ToGraphStage).Cast<IGraphStageWithMaterializedValue<Shape, object>>().ToArray();
}
Expand Down Expand Up @@ -1015,15 +1019,19 @@ public void WithTestSetup(
spec(setup, setup.Builder, setup.LastEvents);
}

#pragma warning disable CS0618 // Type or member is obsolete
public void WithOneBoundedSetup<T>(IStage<T, T> op,
#pragma warning restore CS0618 // Type or member is obsolete
Action
<Func<ISet<OneBoundedSetup.ITestEvent>>, OneBoundedSetup.UpstreamOneBoundedProbe<T>,
OneBoundedSetup.DownstreamOneBoundedPortProbe<T>> spec)
{
WithOneBoundedSetup<T>(ToGraphStage(op), spec);
}

#pragma warning disable CS0618 // Type or member is obsolete
public void WithOneBoundedSetup<T>(IStage<T, T>[] ops,
#pragma warning restore CS0618 // Type or member is obsolete
Action
<Func<ISet<OneBoundedSetup.ITestEvent>>, OneBoundedSetup.UpstreamOneBoundedProbe<T>,
OneBoundedSetup.DownstreamOneBoundedPortProbe<T>> spec)
Expand Down

0 comments on commit 88be1fc

Please sign in to comment.