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="Pipe"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="pipeType">Type of the pipe.</param>
 /// <param name="title">The title.</param>
 public Pipe(Identity identity, PipeType pipeType, Title title = null)
 {
     Id = identity;
     Title = title;
     Name = new Name(Id.Value);
     Type = pipeType;
     Href = new Uri(string.Format(PIPE_URI_FORMAT, Globals.HostName, identity.Value));
 }
Exemple #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Pipe"/> class.
        /// </summary>
        /// <param name="identity">The identity.</param>
        /// <param name="pipeType">Type of the pipe.</param>
        /// <param name="title">The title.</param>
        public Pipe(string identity, string pipeType, string title = null)
        {
            Id = new Identity(identity);
            Title = new Title(title);
            Name = new Name(Id.Value);
            if (!string.IsNullOrEmpty(pipeType))
                Type = (PipeType)Enum.Parse(typeof(PipeType), pipeType);
            else
                Type = PipeType.Default;

            Href = new Uri(string.Format(PIPE_URI_FORMAT, Globals.HostName, Name.Value));
        }
Exemple #4
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;
 }
Exemple #5
0
 /// <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;
 }
Exemple #6
0
 /// <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));
 }
Exemple #7
0
 /// <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;
 }