IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Summary description for RecentFilesService. More...
Public Member Functions | |
void | Remove (string fileName) |
Remove a file from the list More... | |
void | SetMostRecent (string filePath) |
Set the most recent file name, reordering the saved names as needed and removing the oldest if the max number of files would be exceeded. The current CLR version is used to create the entry. More... | |
override void | StopService () |
Do any cleanup needed before terminating the service More... | |
override void | StartService () |
Initialize the Service More... | |
![]() | |
void | Dispose () |
Properties | |
int | MaxFiles [get, set] |
IList< string > | Entries [get] |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get, protected set] |
Gets the ServiceStatus of this service More... | |
![]() | |
IServiceLocator | ServiceContext [get, set] |
The ServiceContext More... | |
ServiceStatus | Status [get] |
Gets the ServiceStatus of this service More... | |
![]() | |
int | MaxFiles [get, set] |
The max number of files saved More... | |
IList< string > | Entries [get] |
Get a list of all the file entries More... | |
Private Member Functions | |
void | LoadEntriesFromSettings () |
void | AddEntriesForPrefix (string prefix) |
void | SaveEntriesToSettings () |
string | GetRecentFileKey (string prefix, int index) |
Private Attributes | |
IList< string > | _fileEntries = new List<string>() |
ISettings | _userSettings |
const int | MinSize = 0 |
const int | MaxSize = 24 |
const int | DefaultSize = 5 |
Additional Inherited Members | |
![]() | |
virtual void | Dispose (bool disposing) |
![]() | |
bool | _disposed = false |
Summary description for RecentFilesService.
|
inline |
Remove a file from the list
fileName | The name of the file to remove |
Implements NUnit.Engine.IRecentFiles.
Referenced by NUnit.Engine.Services.Tests.RecentFilesTests.RemoveFirstProject(), NUnit.Engine.Services.Tests.RecentFilesTests.RemoveLastProject(), NUnit.Engine.Services.Tests.RecentFilesTests.RemoveMultipleProjects(), and NUnit.Engine.Services.Tests.RecentFilesTests.RemoveOneProject().
|
inline |
Set the most recent file name, reordering the saved names as needed and removing the oldest if the max number of files would be exceeded. The current CLR version is used to create the entry.
Implements NUnit.Engine.IRecentFiles.
Referenced by NUnit.Engine.Services.Tests.RecentFilesTests.IncreaseSizeAfterAdd(), NUnit.Engine.Services.Tests.RecentFilesTests.ReorderLastProject(), NUnit.Engine.Services.Tests.RecentFilesTests.ReorderMultipleProjects(), NUnit.Engine.Services.Tests.RecentFilesTests.ReorderSameProject(), NUnit.Engine.Services.Tests.RecentFilesTests.ReorderSingleProject(), NUnit.Engine.Services.Tests.RecentFilesTests.ReorderWithListNotFull(), and NUnit.Engine.Services.Tests.RecentFilesTests.SetMockValues().
|
inlineprivate |
|
inlineprivate |
References NUnit.Engine.ISettings.GetSetting().
|
inlineprivate |
|
inlineprivate |
|
inlinevirtual |
Do any cleanup needed before terminating the service
Reimplemented from NUnit.Engine.Services.Service.
|
inlinevirtual |
Initialize the Service
Reimplemented from NUnit.Engine.Services.Service.
References NUnit.Engine.ServiceContext.GetService().
|
private |
|
private |
|
private |
|
private |
|
private |
|
getset |
Referenced by NUnit.Engine.Services.Tests.RecentFilesTests.CheckAddItems(), NUnit.Engine.Services.Tests.RecentFilesTests.CountAtMax(), NUnit.Engine.Services.Tests.RecentFilesTests.CountAtMin(), NUnit.Engine.Services.Tests.RecentFilesTests.CountDefault(), NUnit.Engine.Services.Tests.RecentFilesTests.CountOverMax(), NUnit.Engine.Services.Tests.RecentFilesTests.CountUnderMin(), NUnit.Engine.Services.Tests.RecentFilesTests.IncreaseSize(), NUnit.Engine.Services.Tests.RecentFilesTests.IncreaseSizeAfterAdd(), NUnit.Engine.Services.Tests.RecentFilesTests.ReduceSize(), and NUnit.Engine.Services.Tests.RecentFilesTests.ReduceSizeAfterAdd().
|
get |