public Decapodian(ISubscriberPersonalization subscriberPersonalization, ISubscribableContent content) { _subscriberPersonalization = subscriberPersonalization; SubscribedContents = new List <ISubscribableContent> { content }; }
public T Create <T>(ISubscriberPersonalization subscriberPersonalization, ISubscribableContent content = null) where T : class, ISubscriber { var concreteType = typeof(T); var instance = (T)Activator.CreateInstance(concreteType, subscriberPersonalization, content); content?.AddSubscriber(instance); return(instance); }
public Robot(ISubscriberPersonalization subscriberPersonalization, ISubscribableContent content) { _subscriberPersonalization = subscriberPersonalization; SubscribedContents = new List <ISubscribableContent>(); if (content != null) { SubscribedContents.Add(content); } }