Example #1
0
        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);
        }
Example #2
0
 public ChatRepositoryBase(IChatMapperBase <T> iChatMapper)
     : this(iChatMapper, ServiceLocator.Current.GetInstance <ISiteInfrastructureConfiguration>())
 {
 }