CQRSSample.Infrastructure.AggregateFactory.Build C# (CSharp) Method

Build() public method

public Build ( Type type, System.Guid id, IMemento snapshot ) : IAggregate
type System.Type
id System.Guid
snapshot IMemento
return IAggregate
        public IAggregate Build(Type type, Guid id, IMemento snapshot)
        {
            //return Activator.CreateInstance(type, id) as IAggregate;
            return Activator.CreateInstance(type) as IAggregate;    // todo
        }
AggregateFactory