[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:
RaidMax
2020-04-25 19:01:26 -05:00
parent ff011be8a6
commit 5529858edd
26 changed files with 258 additions and 74 deletions

View File

@ -0,0 +1,17 @@
using SharedLibraryCore.Database;
namespace SharedLibraryCore.Interfaces
{
/// <summary>
/// describes the capabilities of the database context factory
/// </summary>
public interface IDatabaseContextFactory
{
/// <summary>
/// create or retrieves an existing database context instance
/// </summary>
/// <param name="enableTracking">indicated if entity tracking should be enabled</param>
/// <returns>database context instance</returns>
DatabaseContext CreateContext(bool? enableTracking = true);
}
}

View File

@ -0,0 +1,23 @@
namespace SharedLibraryCore.Interfaces
{
/// <summary>
/// describes the capability of extending properties by name
/// </summary>
interface IPropertyExtender
{
/// <summary>
/// adds or updates property by name
/// </summary>
/// <param name="name">unique name of the property</param>
/// <param name="value">value of the property</param>
void SetAdditionalProperty(string name, object value);
/// <summary>
/// retreives a property by name
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="name">name of the property</param>
/// <returns>property value if exists, otherwise default T</returns>
T GetAdditionalProperty<T>(string name);
}
}