Skip to content

Commit

Permalink
fixed API port issues and API approvals
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Oct 8, 2022
1 parent 2131146 commit 43ba211
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ public void Run()
_tcs.TrySetResult(_counter);
}
}

public void Execute()
{
Run();
}
}

private RunnableTarget _runnable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ namespace Akka.Actor
public override int GetHashCode() { }
public override string ToString() { }
}
public sealed class Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
public struct Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
{
public Event(object fsmEvent, TD stateData) { }
public object FsmEvent { get; }
Expand Down Expand Up @@ -776,10 +776,10 @@ namespace Akka.Actor
{
public static Akka.Actor.FSMBase.StateTimeout Instance { get; }
}
public class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
public sealed class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
{
public State(TS stateName, TD stateData, System.Nullable<System.TimeSpan> timeout = null, Akka.Actor.FSMBase.Reason stopReason = null, System.Collections.Generic.IReadOnlyList<object> replies = null, bool notifies = True) { }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; set; }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; }
public TD StateData { get; }
public TS StateName { get; }
public Akka.Actor.FSMBase.Reason StopReason { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,12 @@ namespace Akka.Actor
protected virtual bool SpecialHandle(object message, Akka.Actor.IActorRef sender) { }
protected override void TellInternal(object message, Akka.Actor.IActorRef sender) { }
}
[System.Runtime.CompilerServices.IsReadOnlyAttribute()]
public struct Envelope
{
public Envelope(object message, Akka.Actor.IActorRef sender, Akka.Actor.ActorSystem system) { }
public Envelope(object message, Akka.Actor.IActorRef sender) { }
[get: System.Runtime.CompilerServices.IsReadOnlyAttribute()]
public object Message { get; }
[get: System.Runtime.CompilerServices.IsReadOnlyAttribute()]
public Akka.Actor.IActorRef Sender { get; }
public override string ToString() { }
}
Expand Down Expand Up @@ -741,7 +740,8 @@ namespace Akka.Actor
public override int GetHashCode() { }
public override string ToString() { }
}
public sealed class Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
[System.Runtime.CompilerServices.IsReadOnlyAttribute()]
public struct Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
{
public Event(object fsmEvent, TD stateData) { }
public object FsmEvent { get; }
Expand Down Expand Up @@ -778,10 +778,10 @@ namespace Akka.Actor
{
public static Akka.Actor.FSMBase.StateTimeout Instance { get; }
}
public class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
public sealed class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
{
public State(TS stateName, TD stateData, System.Nullable<System.TimeSpan> timeout = null, Akka.Actor.FSMBase.Reason stopReason = null, System.Collections.Generic.IReadOnlyList<object> replies = null, bool notifies = True) { }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; set; }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; }
public TD StateData { get; }
public TS StateName { get; }
public Akka.Actor.FSMBase.Reason StopReason { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ namespace Akka.Actor
public override int GetHashCode() { }
public override string ToString() { }
}
public sealed class Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
public struct Event<TD> : Akka.Actor.INoSerializationVerificationNeeded
{
public Event(object fsmEvent, TD stateData) { }
public object FsmEvent { get; }
Expand Down Expand Up @@ -776,10 +776,10 @@ namespace Akka.Actor
{
public static Akka.Actor.FSMBase.StateTimeout Instance { get; }
}
public class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
public sealed class State<TS, TD> : System.IEquatable<Akka.Actor.FSMBase.State<TS, TD>>
{
public State(TS stateName, TD stateData, System.Nullable<System.TimeSpan> timeout = null, Akka.Actor.FSMBase.Reason stopReason = null, System.Collections.Generic.IReadOnlyList<object> replies = null, bool notifies = True) { }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; set; }
public System.Collections.Generic.IReadOnlyList<object> Replies { get; }
public TD StateData { get; }
public TS StateName { get; }
public Akka.Actor.FSMBase.Reason StopReason { get; }
Expand Down
4 changes: 1 addition & 3 deletions src/core/Akka/Akka.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="5.0.5" />
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />
<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
<PackageReference Include="System.Collections.Immutable" Version="5.0.0" />

<PackageReference Include="System.Reflection.Emit" Version="4.7.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == '$(NetStandardLibVersion)'">
Expand Down
7 changes: 6 additions & 1 deletion src/core/Akka/Helios.Concurrency.DedicatedThreadPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private void ReleaseWorker()
}
}

private readonly struct RequestWorkerTask : IRunnable
private sealed class RequestWorkerTask : IRunnable
{
private readonly DedicatedThreadPoolTaskScheduler _scheduler;

Expand Down Expand Up @@ -266,6 +266,11 @@ public void Run()
// We're done processing items on the current thread
finally { _currentThreadIsRunningTasks = false; }
}

public void Execute()
{
Run();
}
}

private void RequestWorker()
Expand Down

0 comments on commit 43ba211

Please sign in to comment.