1
|
using System;
|
2
|
using System.Collections.Generic;
|
3
|
using System.Linq;
|
4
|
using System.Text;
|
5
|
using System.Threading.Tasks;
|
6
|
|
7
|
namespace Core.StaticConfig
|
8
|
{
|
9
|
public class GlobalConfiguration
|
10
|
{
|
11
|
// Default count of required annotations
|
12
|
private static Mutex RequiredAnnotationsMutex = new Mutex();
|
13
|
private static int requiredAnnotations = 3;
|
14
|
public static int RequiredAnnotations
|
15
|
{
|
16
|
get { return requiredAnnotations; }
|
17
|
set
|
18
|
{
|
19
|
RequiredAnnotationsMutex.WaitOne();
|
20
|
requiredAnnotations = value;
|
21
|
RequiredAnnotationsMutex.ReleaseMutex();
|
22
|
}
|
23
|
}
|
24
|
}
|
25
|
}
|