public ChatRepositoryBase(IChatMapperBase <T> iChatMapper, ISiteInfrastructureConfiguration iSiteInfrastructureConfiguration) { this.iChatMapper = Guard.ArgumentNotNullAndReturn(iChatMapper, "iChatMapper"); this.iSiteInfrastructureConfiguration = Guard.ArgumentNotNullAndReturn(iSiteInfrastructureConfiguration, "iSiteInfrastructureConfiguration"); this.Connection = new MySqlConnection(this.iSiteInfrastructureConfiguration.ChatConnectionString); }
public ChatRepositoryBase(IChatMapperBase <T> iChatMapper) : this(iChatMapper, ServiceLocator.Current.GetInstance <ISiteInfrastructureConfiguration>()) { }