コード例 #1
0
 /// <summary>
 /// Configures this instance.
 /// </summary>
 /// <exception cref="System.NotImplementedException"></exception>
 public void Configure()
 {
     dataCacheFactory = new DataCacheFactoryAdapter(new DataCacheFactory());
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AppFabricCache"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="dataCacheFactory">The data cache factory.</param>
 public AppFabricCache(string name, IDataCacheFactory dataCacheFactory)
     : base()
 {
     cache = dataCacheFactory.GetCache(name);
 }