コード例 #1
0
ファイル: ZCMSBaseController.cs プロジェクト: larswise/rCMS
        public ZCMSBaseController(UnitOfWork work, List<ZCMSMenu> menu)
        {
            _worker = work;
            _menu = menu;

            ViewData["MenuData"] = _menu;
        }
コード例 #2
0
ファイル: UnitTest1.cs プロジェクト: larswise/rCMS
        public TestController1()
        {
            // Init ravendb embedded mode...
            var documentStore = new DocumentStore
            {

                Conventions =
                {
                    FindTypeTagName = type => typeof(IZCMSPageType).IsAssignableFrom(type) ? "IZCMSPageType" : null,
                }
            };
            documentStore.Initialize();

            worker = new UnitOfWork(documentStore);
        }
コード例 #3
0
 public ZCMSBaseAjaxController(UnitOfWork work)
 {
     _worker = work;
 }
コード例 #4
0
ファイル: BackendController.cs プロジェクト: larswise/rCMS
 public BackendController(UnitOfWork worker, List<ZCMSMenu> menu)
     : base(worker, menu)
 {
 }
コード例 #5
0
 public AjaxBackendController(UnitOfWork worker)
     : base(worker)
 {
 }
コード例 #6
0
ファイル: ZCMSBootstrapper.cs プロジェクト: larswise/rCMS
        private UnitOfWork GetUnitOfWork()
        {
            var documentStore = new DocumentStore
            {
                Url = "http://localhost:8088",
                DefaultDatabase = ConfigurationManager.AppSettings["RavenDBDefaultDb"].ToString(),
                Conventions =
                {
                    FindTypeTagName = type => typeof(IZCMSPageType).IsAssignableFrom(type) ? "IZCMSPageType" : null,
                },
                Credentials = new System.Net.NetworkCredential(ConfigurationManager.AppSettings["RavenDBWindowsUser"].ToString(), ConfigurationManager.AppSettings["RavenDBWindowsPassword"].ToString()),
            };

            documentStore.Initialize();
            documentStore.JsonRequestFactory.EnableBasicAuthenticationOverUnsecureHttpEvenThoughPasswordsWouldBeSentOverTheWireInClearTextToBeStolenByHackers = true;
            documentStore.DatabaseCommands.EnsureDatabaseExists(ConfigurationManager.AppSettings["RavenDBDefaultDb"].ToString(), true);

            UnitOfWork worker = new UnitOfWork(documentStore);
            return worker;
        }
コード例 #7
0
 public AjaxFrontendController(UnitOfWork worker)
     : base(worker)
 {
 }
コード例 #8
0
 public AuthenticationController(UnitOfWork work)
 {
     _worker = work;
 }
コード例 #9
0
ファイル: FileController.cs プロジェクト: larswise/rCMS
 public FileController(UnitOfWork worker)
     : base(worker)
 {
 }
コード例 #10
0
ファイル: FrontendController.cs プロジェクト: larswise/rCMS
 public FrontendController(UnitOfWork work)
     : base(work)
 {
 }