Skip to content

Commit

Permalink
update to be compatible with older dotnet version (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 authored Nov 5, 2023
1 parent 1f6b459 commit 2ecaaf6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions concurrent/EzyEventLoopEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ public interface EzyEventLoopEvent
{
bool call();

void onFinished() { }
void onFinished();

void onRemoved() { }
void onRemoved();
}
}
5 changes: 5 additions & 0 deletions concurrent/EzyEventLoopGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,11 @@ public void onFinished()
{
eventLoopByEvent.Remove(this);
}

public void onRemoved()
{
// do nothing
}
}

public class ScheduledEvent : EzyEventLoopEvent
Expand Down
12 changes: 11 additions & 1 deletion socket/EzyPingSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ public bool call()
return true;
}

public virtual void start()
public void onFinished()
{
// do nothing
}

public void onRemoved()
{
// do nothing
}

public virtual void start()
{
int periodMillis = pingManager.getPingPeriod();
if (eventLoopGroup != null)
Expand Down
5 changes: 5 additions & 0 deletions socket/EzySocketAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public void onFinished()
setStopped(true);
}

public void onRemoved()
{
// do nothing
}

protected abstract String getThreadName();

protected virtual void run()
Expand Down

0 comments on commit 2ecaaf6

Please sign in to comment.