Here i am using GetType() to get the type of eventData as follows,
public EventDescriptor(Guid id, IEvent eventData)
{
AggregateId = id;
EventData = eventData;
EventType = eventData.GetType().AssemblyQualifiedName;
}
which returns
"EventType": "Shared.Events.EntityCreatedEvent`1[[Shared.Model.Dto.EntityDto, Shared, Version=1.0.6928.25697, Culture=neutral, PublicKeyToken=null]], Shared, Version=1.0.6928.25697, Culture=neutral, PublicKeyToken=null"
how can i get only the Shared.Model.Dto.EntityDto
from the above? is there any methods or properties available?
Aucun commentaire:
Enregistrer un commentaire