/// <summary>
 /// </summary>
 /// <param name="name"></param>
 /// <param name="applicationName"></param>
 /// <param name="redisDatabaseWrapper"></param>
 public RedisAuditLogProvider(string name, string applicationName, RedisDatabaseWrapper redisDatabaseWrapper)
     : base(name)
 {
     Guard.ArgumentNotNullOrEmpty(applicationName, "applicationName");
     RedisDatabaseWrapper = redisDatabaseWrapper;
     ApplicationName = applicationName;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:Cedar.Core.AuditTrail.RedisAuditLogListener" /> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="filterName">Name of the filter.</param>
 /// <param name="databaseName">Name of the database.</param>
 /// <param name="applicationName">Name of the application.</param>
 public RedisAuditLogListener(string name, string filterName, RedisDatabaseWrapper redisDatabaseWrapper,
     string applicationName)
     : base(name, filterName)
 {
     Guard.ArgumentNotNullOrEmpty(applicationName, "applicationName");
     RedisDatabaseWrapper = redisDatabaseWrapper;
     ApplicationName = applicationName;
 }
Пример #3
0
 public RedisWrapperUnitTest()
 {
     _wrapper = new RedisDatabaseWrapper("172.16.0.204", 4);
 }
Пример #4
0
 /// <summary>
 /// </summary>
 /// <param name="isenable"></param>
 /// <param name="expireSpan"></param>
 /// <param name="redisDatabaseWrapper"></param>
 public RedisCachingProvider(bool isenable, TimeSpan expireSpan, RedisDatabaseWrapper redisDatabaseWrapper)
     : base(isenable)
 {
     RedisDatabaseWrapper = redisDatabaseWrapper;
     ExpireSpan = expireSpan;
 }
Пример #5
0
 public RedisWrapperUnitTest()
 {
     _wrapper = new RedisDatabaseWrapper("172.16.0.204", 4, "2257013F03EA762AB1559A00F22D2F86");
 }