Beispiel #1
0
		public EventDetails CreateDetails()
		{
			if ( _factories == null )
				return null;

			var eventDetails = new EventDetails();
			foreach ( IEventDetailFactory eventDetailFactory in _factories.Values )
			{
				IEventDetail eventDetail = eventDetailFactory.CreateInstance();
				eventDetail.Populate();
				eventDetails.Add(eventDetail);
			}

			return eventDetails;
		}
Beispiel #2
0
        private void ReadDetails(XmlReadAdaptor adaptor)
        {
            m_details = new EventDetails();
            if (adaptor.ReadElement(Constants.Xml.Exception.DetailsElement))
            {
                while (adaptor.ReadElement())
                {
                    string name = adaptor.Name;
                    IEventDetailFactory factory = m_eventDetailFactories[name];
                    IEventDetail        detail  = factory.CreateInstance();
                    ((IXmlSerializable)detail).ReadXml(adaptor.XmlReader);
                    m_details.Add(detail);
                    adaptor.ReadEndElement();
                }

                adaptor.ReadEndElement();
            }
        }
Beispiel #3
0
 public EventController(IMethod _SMethod,
                        IEvent _SEvent, IMinio _SMinio,
                        IUser _SUser, IEventDetail _SEventDetail, IEventParticipant _SEventParticipant,
                        IEventCategory _SEventCategory, ICategory _SCategory, IEventSponsor _SEventSponsor,
                        ISponsor _SSponsor, IUserInterest _SUserInterest,
                        INotificationDispatcher notificationDispatcher
                        )
     : base(_SMethod)
 {
     this._SEvent                = _SEvent;
     this._SMinio                = _SMinio;
     this._SUser                 = _SUser;
     this._SEventDetail          = _SEventDetail;
     this._SEventParticipant     = _SEventParticipant;
     this._SEventCategory        = _SEventCategory;
     this._SCategory             = _SCategory;
     this._SEventSponsor         = _SEventSponsor;
     this._SSponsor              = _SSponsor;
     this._SUserInterest         = _SUserInterest;
     this.notificationDispatcher = notificationDispatcher;
 }
Beispiel #4
0
        private void ReadDetails(XmlReadAdaptor adaptor)
        {
            _details = new EventDetails();
            if (adaptor.ReadElement(Constants.Xml.DetailsElement))
            {
                while (adaptor.ReadElement())
                {
                    string name = adaptor.Name;
                    IEventDetailFactory factory = InstrumentationManager.GetEventDetailFactory(name);
                    if (factory != null)
                    {
                        IEventDetail detail = factory.CreateInstance();
                        ((IXmlSerializable)detail).ReadXml(adaptor.XmlReader);
                        _details.Add(detail);
                    }

                    adaptor.ReadEndElement();
                }

                adaptor.ReadEndElement();
            }
        }
 internal EventDetailMemberWrapper(IEventDetail value)
 {
     m_value = value;
 }
 internal EventDetailGenericWrapper(IEventDetail detail)
     : base(detail)
 {
 }