Skip to content
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

update to be compatible with older dotnet version #52

Merged
merged 1 commit into from
Nov 5, 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
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