public void Initialize(IServiceLocator serviceLocator)
{
Argument.IsNotNull("serviceLocator", serviceLocator);
serviceLocator.RegisterType<ILanguageService, LanguageService>();
serviceLocator.RegisterInstance<IExceptionService>(ExceptionService.Default);
serviceLocator.RegisterInstance<IMessageMediator>(MessageMediator.Default);
serviceLocator.RegisterType<IValidatorProvider, AttributeValidatorProvider>();
serviceLocator.RegisterType<IRegistrationConventionHandler, RegistrationConventionHandler>();
#if NET
serviceLocator.RegisterType<IBinarySerializer, BinarySerializer>();
serviceLocator.RegisterTypeWithTag<ISerializationContextInfoFactory, BinarySerializationContextInfoFactory>(typeof(BinarySerializer));
#endif
serviceLocator.RegisterType<IDataContractSerializerFactory, DataContractSerializerFactory>();
serviceLocator.RegisterType<IXmlSerializer, XmlSerializer>();
serviceLocator.RegisterType<IXmlNamespaceManager, XmlNamespaceManager>();
serviceLocator.RegisterType<ISerializationManager, SerializationManager>();
serviceLocator.RegisterType<IObjectAdapter, ObjectAdapter>();
serviceLocator.RegisterType<ISerializer, XmlSerializer>();
serviceLocator.RegisterTypeWithTag<ISerializationContextInfoFactory, XmlSerializationContextInfoFactory>(typeof(XmlSerializer));
serviceLocator.RegisterType<IModelEqualityComparer, ModelEqualityComparer>();
serviceLocator.RegisterType<IConfigurationService, ConfigurationService>();
serviceLocator.RegisterType<IObjectConverterService, ObjectConverterService>();
serviceLocator.RegisterType<IRollingInMemoryLogService, RollingInMemoryLogService>();
}
}