Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Allow domain node to be reused
Browse files Browse the repository at this point in the history
  • Loading branch information
martinabrahams committed Mar 1, 2016
1 parent 3591107 commit aa38351
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Models/UrlTrackerDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ public class UrlTrackerDomain
public int NodeId { get; set; }
public string Name { get; set; }

public Node Node { get { return new Node(NodeId); } }
private Node _node = null;
public Node Node
{
get
{
if (_node == null)
_node = new Node(NodeId);
return _node;
}
}

public string UrlWithDomain
{
get
Expand Down

0 comments on commit aa38351

Please sign in to comment.