Esempio n. 1
0
 /// <summary>
 /// Gets an IndexInterface<K,V> given its name
 /// </summary>
 /// <typeparam name="K">key type of the index</typeparam>
 /// <typeparam name="V">value type of the index, which is
 /// the grain being indexed</typeparam>
 /// <param name="indexName">the name of the index, which
 /// is the identifier of the index</param>
 /// <returns>the IndexInterface<K,V> with the specified name</returns>
 public static IndexInterface <K, V> GetIndex <K, V>(this IGrainFactory gf, string indexName) where V : IIndexableGrain
 {
     return(IndexHandler.GetIndex <K, V>(indexName));
 }
Esempio n. 2
0
 /// <summary>
 /// Gets an IndexInterface given its name and grain interface type
 /// </summary>
 /// <param name="indexName">the name of the index, which
 /// is the identifier of the index<</param>
 /// <param name="iGrainType">the grain interface type
 /// that is being indexed</param>
 /// <returns>the IndexInterface with the specified name on the
 /// given grain interface type</returns>
 internal static IndexInterface GetIndex(this IGrainFactory gf, string indexName, Type iGrainType)
 {
     return(IndexHandler.GetIndex(iGrainType, indexName));
 }