public RemoteStoredObjectPointer(StoreConnection storeConnection, StoredObjectId StoredObjectId) { Condition.Requires(storeConnection).IsNotNull(); this.StoreConnection = storeConnection; this.StoredObjectId = StoredObjectId; }
/// <summary> /// returns the first store that has the same storeName /// </summary> /// <param name="storeName"></param> /// <returns></returns> public IStore GetStore(StoreConnection conn) { var builders = this.Store.GetAll(); if ((builders != null && builders.Count > 0)) { return(null); } foreach (var each in builders) { if (each.CanHandle(conn)) { return(each.GetStore(conn)); } } return(null); }