public Cook(string publicIPv6, string name, OvenUri oven, IServer server) { if(string.IsNullOrEmpty(publicIPv6)) throw new ArgumentNullException("clientPublicIPv6"); if(string.IsNullOrEmpty(name)) throw new ArgumentNullException("name"); if(null == oven) throw new ArgumentNullException("oven"); _name = name; _oven = new Autogenerated.ControlledOvenProxy(oven, server); UriBuilder builder = new UriBuilder("http", publicIPv6); builder.Fragment = name + "/"; _uri = builder.Uri; _alarm = new AlarmBell(_uri); _reporter = new Reporter(_uri, new Autogenerated.ReportingOvenProxy(oven, server)); }
internal ReportingOvenProxy(OvenUri uri, IServer server) { _uri = uri; _server = server; }