mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
[misc bug fixes]
properly hide broadcast failure messages if ignore connection lost is turned on fix concurent issue for update stats history that happened with new event processing make get/set additional property thread safe add ellipse to truncated chat messages on home
This commit is contained in:
21
Application/Factories/DatabaseContextFactory.cs
Normal file
21
Application/Factories/DatabaseContextFactory.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using SharedLibraryCore.Database;
|
||||
using SharedLibraryCore.Interfaces;
|
||||
|
||||
namespace IW4MAdmin.Application.Factories
|
||||
{
|
||||
/// <summary>
|
||||
/// implementation of the IDatabaseContextFactory interface
|
||||
/// </summary>
|
||||
public class DatabaseContextFactory : IDatabaseContextFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// creates a new database context
|
||||
/// </summary>
|
||||
/// <param name="enableTracking">indicates if entity tracking should be enabled</param>
|
||||
/// <returns></returns>
|
||||
public DatabaseContext CreateContext(bool? enableTracking = true)
|
||||
{
|
||||
return enableTracking.HasValue ? new DatabaseContext(disableTracking: !enableTracking.Value) : new DatabaseContext();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user