🚧 plugin system, webhook system
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Ragon.Server;
|
||||
namespace Ragon.Server.IO;
|
||||
|
||||
public interface INetworkListener
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user