public static ApplicationRole GetUserRole()
 {
     if (context == null)
     {
         context = new BsaContext("", "", ApplicationRole.Client);
     }
     return(context.Role);
 }
 public static void SetURL(string url)
 {
     if (context == null)
     {
         context = new BsaContext(url, "", ApplicationRole.Client);
     }
     context.Url = url;
 }
 public static string GetUserName()
 {
     if (context == null)
     {
         context = new BsaContext("", "", ApplicationRole.Client);
     }
     return(context.UserName);
 }
 public static string GetURL()
 {
     if (context == null)
     {
         // ToDo: Make use of parameterless constructor and pass the defaults there
         context = new BsaContext("", "", ApplicationRole.Client);
     }
     return(context.Url);
 }
 public static void Initialize(string url, string userName, ApplicationRole role)
 {
     if (context == null)
     {
         context = new BsaContext(url, userName, role);
     }
     else
     {
         context.UserName = userName;
         context.Url      = url;
         context.Role     = role;
     }
 }