Removed Many Things
This commit is contained in:
@@ -9,7 +9,7 @@ using UnityEngine;
|
||||
namespace BITKit.Net.Http
|
||||
{
|
||||
[CustomType(typeof(IHttpListenerService))]
|
||||
public class UnityBasedHttpListenerService : EntityBehavior,IHttpListenerService
|
||||
public class UnityBasedHttpListenerService : MonoBehaviour,IHttpListenerService
|
||||
{
|
||||
[SerializeField] private int port = 8080;
|
||||
[SerializeField] private bool autoStart = true;
|
||||
@@ -29,16 +29,12 @@ namespace BITKit.Net.Http
|
||||
remove => _service.OnRequest -= value;
|
||||
}
|
||||
|
||||
public override void OnStart()
|
||||
private void Start()
|
||||
{
|
||||
if (!autoStart) return;
|
||||
_service.Port = port;
|
||||
_service.Start();
|
||||
}
|
||||
|
||||
public override void OnDestroyComponent()
|
||||
{
|
||||
_service.Stop();
|
||||
destroyCancellationToken.Register(_service.Stop);
|
||||
}
|
||||
|
||||
void IHttpListenerService.Start()
|
||||
|
Reference in New Issue
Block a user