🚧 plugin system, webhook system

This commit is contained in:
2023-04-09 10:52:18 +04:00
parent f2edc94958
commit bfd6c1b54b
60 changed files with 762 additions and 267 deletions
+3 -3
View File
@@ -16,7 +16,7 @@
using System.Threading.Channels;
namespace Ragon.Server;
namespace Ragon.Server.IO;
public class Executor: TaskScheduler, IExecutor
{
@@ -25,9 +25,9 @@ public class Executor: TaskScheduler, IExecutor
private Queue<Task> _pendingTasks;
private TaskFactory _taskFactory;
public void Run(Action action)
public Task Run(Action action)
{
_taskFactory.StartNew(action);
return _taskFactory.StartNew(action);
}
public Executor()
+2 -2
View File
@@ -14,9 +14,9 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public interface IExecutor
{
public void Run(Action action);
public Task Run(Action action);
}
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public interface INetworkChannel
{
@@ -14,11 +14,12 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public interface INetworkConnection
{
public ushort Id { get; }
public INetworkChannel Reliable { get; }
public INetworkChannel Unreliable { get; }
public void Close();
}
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public interface INetworkListener
{
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public interface INetworkServer
{
@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace Ragon.Server;
namespace Ragon.Server.IO;
public struct NetworkConfiguration
{