/// <summary> /// Initializes a new instance of the <see cref="InMemoryFilesSessionOperations"/> class. /// </summary> protected InMemoryFilesSessionOperations(FilesStore filesStore, FilesSessionListeners listeners, Guid id) { this.Id = id; this.filesStore = filesStore; this.theListeners = listeners; this.MaxNumberOfRequestsPerSession = filesStore.Conventions.MaxNumberOfRequestsPerSession; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncFilesSession"/> class. /// </summary> public AsyncFilesSession(FilesStore filesStore, IAsyncFilesCommands asyncFilesCommands, FilesSessionListeners listeners, Guid id) : base(filesStore, listeners, id) { Commands = asyncFilesCommands; filesStore.Changes().ForConflicts().Subscribe(this); }
/// <summary> /// Initializes a new instance of the <see cref="InMemoryFilesSessionOperations"/> class. /// </summary> protected InMemoryFilesSessionOperations( FilesStore filesStore, FilesSessionListeners listeners, Guid id) { Id = id; this.filesStore = filesStore; theListeners = listeners; MaxNumberOfRequestsPerSession = filesStore.Conventions.MaxNumberOfRequestsPerSession; UseOptimisticConcurrency = filesStore.Conventions.DefaultUseOptimisticConcurrency; }
/// <summary> /// Initializes a new instance of the <see cref="InMemoryFilesSessionOperations"/> class. /// </summary> protected InMemoryFilesSessionOperations( FilesStore filesStore, FilesSessionListeners listeners, Guid id) { Id = id; this.filesStore = filesStore; theListeners = listeners; MaxNumberOfRequestsPerSession = filesStore.Conventions.MaxNumberOfRequestsPerSession; UseOptimisticConcurrency = filesStore.Conventions.DefaultUseOptimisticConcurrency; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncFilesSession"/> class. /// </summary> public AsyncFilesSession(FilesStore filesStore, IAsyncFilesCommands asyncFilesCommands, FilesSessionListeners listeners, Guid id) : base(filesStore, listeners, id) { Commands = asyncFilesCommands; conflictCacheRemoval = filesStore.Changes(this.FileSystemName) .ForConflicts() .Subscribe<ConflictNotification>(this.OnFileConflict); }
/// <summary> /// Initializes a new instance of the <see cref="AsyncFilesSession"/> class. /// </summary> public AsyncFilesSession(FilesStore filesStore, IAsyncFilesCommands asyncFilesCommands, FilesSessionListeners listeners, Guid id) : base(filesStore, listeners, id) { Commands = asyncFilesCommands; conflictCacheRemoval = filesStore.Changes(this.FileSystemName) .ForConflicts() .Subscribe <ConflictNotification>(this.OnFileConflict); }
/// <summary> /// Initializes a new instance of the <see cref="AsyncFilesSession"/> class. /// </summary> public AsyncFilesSession(FilesStore filesStore, IAsyncFilesCommands asyncFilesCommands, FilesSessionListeners listeners, Guid id) : base(filesStore, listeners, id) { Commands = asyncFilesCommands; conflictCacheRemoval = filesStore.Changes(this.FileSystemName) .ForConflicts() .Subscribe(new FileConflictObserver(this)); }
public void SetListeners(FilesSessionListeners newListeners) { this.listeners = newListeners; }
/// <summary> /// Initializes a new instance of the <see cref="InMemoryFilesSessionOperations"/> class. /// </summary> protected InMemoryFilesSessionOperations( FilesStore filesStore, FilesSessionListeners listeners, Guid id) { this.Id = id; this.filesStore = filesStore; this.theListeners = listeners; this.MaxNumberOfRequestsPerSession = filesStore.Conventions.MaxNumberOfRequestsPerSession; }
public void SetListeners(FilesSessionListeners newListeners) { this.listeners = newListeners; }