/// <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;
        }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
        /// <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;
        }
Exemplo n.º 5
0
        /// <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);
		}
Exemplo n.º 6
0
 /// <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);
 }
Exemplo n.º 7
0
 /// <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));
 }
Exemplo n.º 8
0
 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;
		}
Exemplo n.º 10
0
 public void SetListeners(FilesSessionListeners newListeners)
 {
     this.listeners = newListeners;         
 }