public Listener Create() { var listener = new Listener() { }; return listener; }
public void StopListener(Listener listener) { try { listener.Stop(); } catch (Exception ex) { this.Logger.WriteException(ex); throw; } }
public string SendPayload(Listener listener, Guid connectionIdentifier, string request) { try { var response = listener.SendPayload(connectionIdentifier, request); return response; } catch (Exception ex) { this.Logger.WriteException(ex); throw; } }