Exemple #1
0
 /// <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();
 }
Exemple #2
0
 /// <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();
 }