/// <summary> /// Initializes a new instance of the <see cref="RestMSPipeLink"/> class. /// </summary> /// <param name="pipe">The pipe.</param> public RestMSPipeLink(Pipe pipe) { Name = pipe.Name.Value; Type = pipe.Type.ToString(); Title = pipe.Title.Value; Href = pipe.Href.AbsoluteUri; }
/// <summary> /// Initializes a new instance of the <see cref="RestMSPipe"/> class. /// </summary> /// <param name="pipe">The pipe.</param> public RestMSPipe(Pipe pipe) { Name = pipe.Name.Value; Type = pipe.Type.ToString(); Title = pipe.Title.Value; Href = pipe.Href.AbsoluteUri; Joins = pipe.Joins.Select(join => new RestMSJoin(join)).ToArray(); Messages = pipe.Messages.Select(message => new RestMSMessageLink(message)).ToArray(); }
/// <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="Command" /> class. /// </summary> /// <param name="pipeIdentity">The pipe identity.</param> /// <param name="feedAddress">The feed address.</param> /// <param name="addressPattern">The address pattern.</param> public AddJoinToFeedCommand(Pipe pipe, string feedAddress, string addressPattern) : base(Guid.NewGuid()) { FeedAddress = feedAddress; AddressPattern = addressPattern; Pipe = pipe; }