public ComponentModel( string id, IEnumerable<ServiceModel> services, string limitTypeId, IDictionary<string, string> metadata, string targetComponentId, OwnershipModel ownership, SharingModel sharing, LifetimeModel lifetime, ActivatorModel activator) { if (id == null) throw new ArgumentNullException("id"); if (services == null) throw new ArgumentNullException("services"); if (limitTypeId == null) throw new ArgumentNullException("limitTypeId"); if (metadata == null) throw new ArgumentNullException("metadata"); if (targetComponentId == null) throw new ArgumentNullException("targetComponentId"); _id = id; _limitTypeId = limitTypeId; _metadata = new Dictionary<string,string>(metadata); _services = services.ToArray(); _targetComponentId = targetComponentId; _ownership = ownership; _sharing = sharing; _lifetime = lifetime; _activator = activator; }
public Component(string id, TypeData limitType, IEnumerable<Service> services, OwnershipModel ownership, SharingModel sharing, IDictionary<string, string> metadata, ActivatorModel activator, LifetimeModel lifetime, string targetComponentId = null) { if (limitType == null) throw new ArgumentNullException("limitType"); if (services == null) throw new ArgumentNullException("services"); if (metadata == null) throw new ArgumentNullException("metadata"); _id = id; _limitType = limitType; _services = services.ToArray(); _ownership = ownership; _sharing = sharing; _metadata = metadata; _activator = activator; _lifetime = lifetime; _targetComponentId = targetComponentId; }
public ComponentModel( string id, IEnumerable <ServiceModel> services, string limitTypeId, IDictionary <string, string> metadata, string targetComponentId, OwnershipModel ownership, SharingModel sharing, LifetimeModel lifetime, ActivatorModel activator) { if (id == null) { throw new ArgumentNullException("id"); } if (services == null) { throw new ArgumentNullException("services"); } if (limitTypeId == null) { throw new ArgumentNullException("limitTypeId"); } if (metadata == null) { throw new ArgumentNullException("metadata"); } if (targetComponentId == null) { throw new ArgumentNullException("targetComponentId"); } _id = id; _limitTypeId = limitTypeId; _metadata = new Dictionary <string, string>(metadata); _services = services.ToArray(); _targetComponentId = targetComponentId; _ownership = ownership; _sharing = sharing; _lifetime = lifetime; _activator = activator; }
public Component(string id, TypeData limitType, IEnumerable <Service> services, OwnershipModel ownership, SharingModel sharing, IDictionary <string, string> metadata, ActivatorModel activator, LifetimeModel lifetime, string targetComponentId = null) { if (limitType == null) { throw new ArgumentNullException("limitType"); } if (services == null) { throw new ArgumentNullException("services"); } if (metadata == null) { throw new ArgumentNullException("metadata"); } _id = id; _limitType = limitType; _services = services.ToArray(); _ownership = ownership; _sharing = sharing; _metadata = metadata; _activator = activator; _lifetime = lifetime; _targetComponentId = targetComponentId; }