示例#1
0
 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);
        }
示例#3
0
        public Robot(ISubscriberPersonalization subscriberPersonalization, ISubscribableContent content)
        {
            _subscriberPersonalization = subscriberPersonalization;
            SubscribedContents         = new List <ISubscribableContent>();

            if (content != null)
            {
                SubscribedContents.Add(content);
            }
        }