public Client(IClientConnection connection, string serviceName, Action <string> log = null) { _connection = connection; _prefix = serviceName + "."; _serializer = JsonSerializer.Create(new JsonSerializerSettings { CheckAdditionalContent = false, }); _log = HostUtils.DefaultLog("Client: ", log); }
public Host(string address, Action <string> log = null) { _address = address; _log = HostUtils.DefaultLog("Host: ", log); }
public Registry(Action <string> log) { _log = HostUtils.DefaultLog("Registry:", log); }
public RequestHandler(Registry registry, Action <string> log = null) { _registry = registry; _log = HostUtils.DefaultLog("Handler: ", log); }
protected Server(string address, RequestHandler requestHandler, Action <string> log = null) { Log = HostUtils.DefaultLog("Server: ", log); RequestHandler = requestHandler; Address = address; }