public override void StartProcessing() { _options.Validate(); _listener = new TcpListener(_options.Endpoint); _listener.Start(); _listener.BeginAcceptSocket(AcceptCallback, _listener); }
public override void Initialize(IApplicationHost host, IOptions options) { _hostService = host; if (options != null) { _options = (TcpReceieveOptions) options; // Validate options (since this will be coming from a human) _options.Validate(); } }
public override void Initialize(IApplicationHost host, IOptions options) { _hostService = host; if (options != null) { _options = (TcpReceieveOptions)options; // Validate options (since this will be coming from a human) _options.Validate(); } }