private SubscriptionStore(string deployPath, string tempPath, ComponentStoreType storeType) { this._deployPath = deployPath; this._tempPath = tempPath; Directory.CreateDirectory(this._deployPath); Directory.CreateDirectory(this._tempPath); using (this.AcquireStoreWriterLock()) this._compStore = ComponentStore.GetStore(storeType, this); }
private SubscriptionStore(string deployPath, string tempPath, ComponentStoreType storeType) { this._deployPath = deployPath; this._tempPath = tempPath; Directory.CreateDirectory(this._deployPath); Directory.CreateDirectory(this._tempPath); using (this.AcquireStoreWriterLock()) { this._compStore = ComponentStore.GetStore(storeType, this); } }
private ComponentStore(ComponentStoreType storeType, SubscriptionStore subStore) { if (storeType != ComponentStoreType.UserStore) { throw new NotImplementedException(); } this._storeType = storeType; this._subStore = subStore; this._store = System.Deployment.Internal.Isolation.IsolationInterop.GetUserStore(); Guid guidOfType = System.Deployment.Internal.Isolation.IsolationInterop.GetGuidOfType(typeof(System.Deployment.Internal.Isolation.IStateManager)); this._stateMgr = System.Deployment.Internal.Isolation.IsolationInterop.GetUserStateManager(0, IntPtr.Zero, ref guidOfType) as System.Deployment.Internal.Isolation.IStateManager; this._firstRefresh = true; }
public static ComponentStore GetStore(ComponentStoreType storeType, SubscriptionStore subStore) { return new ComponentStore(storeType, subStore); }