Example #1
0
 public ISNContext GetContext(string context = SNContextLevel.DEFAULT)
 {
     if (SNContexts.ContainsKey(context))
     {
         if (SNContexts [context] == null)
         {
             SNContexts [context] = new SNContext();
             return(SNContexts [context]);
         }
         else
         {
             return(SNContexts [context]);
         }
     }
     else
     {
         SNContexts.Add(context, new SNContext());
         return(SNContexts [context]);
     }
 }