38 lines
876 B
C#
38 lines
876 B
C#
using BS.Shared;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo
|
|
{
|
|
public class MainSessionSingleton
|
|
{
|
|
private static MainSessionSingleton instance = null;
|
|
private static readonly object padlock = new object();
|
|
|
|
public ObservableCollection<UserRightType> LoggedOnUsersRights { get; set; }
|
|
|
|
MainSessionSingleton()
|
|
{
|
|
}
|
|
|
|
public static MainSessionSingleton Instance
|
|
{
|
|
get
|
|
{
|
|
lock (padlock)
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = new MainSessionSingleton();
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|