/// <summary> /// Creates a new NetGraphApplication instance. /// </summary> /// <param name="netProvider"> /// Interface provided by API consumer that provides required networking infrastructure. /// </param> /// <param name="name">The user friendly name for this computer.</param> /// <param name="uri">The URI for this computer.</param> public NetGraphApplication(INetProvider netProvider, string name, Uri uri) { netProvider.AssertNotNull(nameof(netProvider)); name.AssertNotNullOrEmptyOrWhitespace(nameof(netProvider)); uri.AssertNotNull(nameof(uri)); this.netProvider = netProvider; this.graph = new NetGraph(name, uri); }