Ejemplo n.º 1
0
        /// <summary>
        /// Adds the live store.
        /// </summary>
        /// <typeparam name="Id">The type of the d.</typeparam>
        /// <typeparam name="T"></typeparam>
        /// <param name="name">The name.</param>
        /// <param name="store">The store.</param>
        /// <param name="remoteId">The remote id.</param>
        /// <param name="subRemote">if set to <c>true</c> [sub remote].</param>
        public void AddLiveStore <Id, T>(String name, DextopObservableStore <Id, T> store, String remoteId = null, bool subRemote = true) where T : class
        {
            var meta      = Context.ModelManager.GetModelMeta(typeof(T));
            var liveStore = new DextopLiveStore(meta, store);

            AddLiveStore(name, liveStore, remoteId, subRemote);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the live store.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="liveStore">The live store.</param>
 /// <param name="remoteId">The remote id.</param>
 /// <param name="subRemote">if set to <c>true</c> [sub remote].</param>
 public void AddLiveStore(String name, DextopLiveStore liveStore, String remoteId = null, bool subRemote = true)
 {
     AddRemotableComponent(name + "LiveStore", liveStore, remoteId, subRemote, true);
 }