public void Initialize() { MappingRegistry = new MappingRegistry(); Mapper = new Mapper(MappingRegistry); Serializer = new Serializer(); TLSerializerRegistration.Register(Serializer); MappingRegistry.RegisterDefaultInstance <Serializer>(Serializer); History = new TLHistory(Serializer); MappingRegistry.RegisterDefaultInstance <ICommandHistory>(History); }
public void Initialize() { MappingRegistry = new MappingRegistry(); Mapper = new Mapper(MappingRegistry); Serializer = new Serializer(); TLSerializerRegistration.Register(Serializer); MappingRegistry.RegisterDefaultInstance<Serializer>(Serializer); History = new TLHistory(Serializer); MappingRegistry.RegisterDefaultInstance<ICommandHistory>(History); }