/// <summary> /// Initializes a new instance of the <see cref="Feed"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="feedType">Type of the feed.</param> /// <param name="title">The title.</param> /// <param name="license">The license.</param> public Feed(Name name, FeedType feedType = FeedType.Direct, Title title = null, Name license = null) { Type = feedType; Name = name; Title = title; License = license; Version = new AggregateVersion(0); Href = new Uri(string.Format(FEED_URI_FORMAT, Globals.HostName, Name.Value)); Joins = new RoutingTable(); }
/// <summary> /// Initializes a new instance of the <see cref="T:System.Object" /> class. /// </summary> /// <param name="pipe">The Pipe this joins the feed to</param> /// <param name="feedHref">The feed href for identifying the feed</param> /// <param name="address">The address pattern to match this join against.</param> public Join(Pipe pipe, Uri feedHref, Address address) { Address = address; FeedHref = feedHref; Pipe = pipe; Type = JoinType.Default; Name = new Name(Guid.NewGuid().ToString()); Href = new Uri(string.Format(JOIN_URI_FORMAT, Globals.HostName, Name.Value)); Id = new Identity(Name.Value); Version = new AggregateVersion(0); }
/// <summary> /// Initializes a new instance of the <see cref="Feed"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="version">The version.</param> /// <param name="feedType">Type of the feed.</param> /// <param name="title">The title.</param> /// <param name="license">The license.</param> public Feed(Name name, AggregateVersion version, FeedType feedType = FeedType.Direct, Title title = null, Name license = null) : this(name, feedType, title, license) { Version = version; }
/// <summary> /// Initializes a new instance of the <see cref="Domain"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="title">The title.</param> /// <param name="profile">The profile.</param> /// <param name="version">The version.</param> public Domain(Name name, Title title, Profile profile, AggregateVersion version) : this(name, title, profile) { Version = version; }
/// <summary> /// Initializes a new instance of the <see cref="Domain"/> class. /// </summary> /// <param name="name">The name.</param> /// <param name="title">The title.</param> /// <param name="profile">The profile.</param> public Domain(Name name, Title title, Profile profile) { Name = name; Title = title; Profile = profile; Version = new AggregateVersion(0); Href = new Uri(string.Format(DOMAIN_URI_FORMAT, Globals.HostName, Name.Value)); }