protected void Application_Start()
        {
            MobilePaywall.Data.Sql.Database dummy = null;
            Senti.Data.DataLayerRuntime     r     = new Senti.Data.DataLayerRuntime();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
        // this folder must have "_config.txt" with prefiled informations

        static void Main(string[] args)
        {
            MobilePaywall.Data.Sql.Database db      = null;
            Senti.Data.DataLayerRuntime     runtime = new Senti.Data.DataLayerRuntime();
            VideoUploaderManager            manager = new VideoUploaderManager(@"C:\Users\ako\Desktop\upload lorenc");

            manager.Start();

            Console.ReadKey();
        }
示例#3
0
        static void Main(string[] args)
        {
            MobilePaywall.Data.Sql.Database db      = null;
            Senti.Data.DataLayerRuntime     runtime = new Senti.Data.DataLayerRuntime();
            //log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo("~/log4net.config"));
            new SignalRConnector();

            Log.Debug("Task.Deamon started");
            DeamonManager.Start();

            Console.ReadKey();
        }
示例#4
0
        protected void Application_Start()
        {
            MobilePaywall.Data.Sql.Database dummy = null;
            Senti.Data.DataLayerRuntime     r     = new Senti.Data.DataLayerRuntime();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

            OLApplication.Country        = Data.Country.CreateManager().Load();
            OLApplication.MobileOperator = Data.MobileOperator.CreateManager().Load();
        }
示例#5
0
        static void Main(string[] args)
        {
            Guid a;

            Guid.TryParse("940ab0ff1e9a4c00b79a1e28a4b72957", out a);
            return;

            MobiChat.Data.Sql.Database  dummy = null;
            Senti.Data.DataLayerRuntime r     = new Senti.Data.DataLayerRuntime();

            Service        service     = Service.CreateManager().Load(2);
            Customer       customer    = Customer.CreateManager().Load(91);
            List <Message> oldMessages = Message.CreateManager().Load(customer, MessageType.MT_Free);

            Console.WriteLine();
            Console.ReadKey();
        }
示例#6
0
        public override void Init()
        {
            base.Init();

            //LogMessageBuilder builder = null;
            MobiChat.Data.Sql.Database  dummy = null;
            Senti.Data.DataLayerRuntime r     = new Senti.Data.DataLayerRuntime();
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(Server.MapPath("~/log4net.config")));

            try
            {
                this.InitializeRuntime();
            }
            catch (Exception ex)
            {
                //builder = new LogMessageBuilder(new LogErrorCode("paywall.web.core", "paywallhttpapplication", "init"), "");
                //if (Log.IsFatalEnabled)
                //  Log.Fatal(builder, ex);
                throw new ArgumentException(ex.Message);
            }
        }
示例#7
0
        protected void Application_Start()
        {
            MobilePaywall.Data.Sql.Database dummy = null;
            Senti.Data.DataLayerRuntime     r     = new Senti.Data.DataLayerRuntime();

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(Server.MapPath("~/log4net.config")));

            PaywallApplication.TaskManager = new TaskManager();

            new Thread(() => {
                PaywallApplication.TaskManager.Run();
            }).Start();

            MobilePaywall.AndroidHttpService.Code.Session.GetSuitableServices.GetWapService(MobilePaywall.Data.AndroidClientSession.CreateManager().Load(33));

            Log.Debug("Application started");
        }