Esempio n. 1
0
 public static void Start()
 {
     IContainer container = IoC.Initialize();
     StructureMapDependencyScope = new StructureMapDependencyScope(container);
     DependencyResolver.SetResolver(StructureMapDependencyScope);
     DynamicModuleUtility.RegisterModule(typeof(StructureMapScopeModule));
     var Log = new EventLogger();
     Log.WriteToLog("StructureMap.Start()");
 }
Esempio n. 2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.Name;
     //StructuremapMvc.Start();
     ApplicationInit();
     var Log = new EventLogger();
     Log.WriteToLog("Application_Start");
 }
Esempio n. 3
0
 public PasswordUtility(string key)
 {
     try
     {
         this.Key = this.StringToByteArray(key);
     }
     catch (Exception e)
     {
         var Logger = new EventLogger();
         var message = "RemoteLab Error: Invalid Encryption Key. Please make sure to run setup.";
         Logger.WriteToLog(message);
         throw new Exception(message);
     }
 }