コード例 #1
0
 public StatusController(IStoreDataAsKeyValue store)
     : base(store)
 {
     Check.NotNull(store, "store");
     this.reservationEngine =
         new ReservationEngine(() => CurrentUser, new ReservationProvider(store));
     Check.InjectedMembers(this);
 }
コード例 #2
0
 public ReservationController(IStoreDataAsKeyValue store)
     : base(store)
 {
     Check.NotNull(store, "store");
     this.reservationEngine =
         new ReservationEngine(() => CurrentUser, new ReservationProvider(store));
     Check.InjectedMembers(this);
 }
コード例 #3
0
 public ActiveDirectoryAuthenticator(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.store = store;
     string configDomain = ConfigurationManager.AppSettings["ActiveDirectory.Domain"];
     if (!string.IsNullOrWhiteSpace(configDomain))
     {
         this.domain = configDomain;
         this.domainConnectionString = string.Format("LDAP://{0}", configDomain);
     }
     Check.InjectedMembers(this);
 }
コード例 #4
0
        public ActiveDirectoryAuthenticator(IStoreDataAsKeyValue store)
        {
            Check.NotNull(store, "store");
            this.store = store;
            string configDomain = ConfigurationManager.AppSettings["ActiveDirectory.Domain"];

            if (!string.IsNullOrWhiteSpace(configDomain))
            {
                this.domain = configDomain;
                this.domainConnectionString = string.Format("LDAP://{0}", configDomain);
            }
            Check.InjectedMembers(this);
        }
コード例 #5
0
 public ReservationProvider(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.dataStore = store;
     reservationStore = this.dataStore.Load().Where(d => d.Value is Reservation);
 }
コード例 #6
0
ファイル: BaseController.cs プロジェクト: hinteadan/croom
 public BaseController(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.store = store;
     Check.InjectedMembers(this);
 }
コード例 #7
0
 public BaseController(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.store = store;
     Check.InjectedMembers(this);
 }
コード例 #8
0
 public UserController(IStoreDataAsKeyValue store) : base(store)
 {
 }
コード例 #9
0
 public ReservationProvider(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.dataStore   = store;
     reservationStore = this.dataStore.Load().Where(d => d.Value is Reservation);
 }
コード例 #10
0
ファイル: DummyAuthenticator.cs プロジェクト: hinteadan/croom
 public DummyAuthenticator(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.store = store;
     Check.InjectedMembers(this);
 }
コード例 #11
0
ファイル: UserController.cs プロジェクト: hinteadan/croom
 public UserController(IStoreDataAsKeyValue store)
     : base(store)
 {
 }
コード例 #12
0
 public MatchDataController(IStoreDataAsKeyValue dataStore)
 {
     this.dataStore = dataStore;
 }
コード例 #13
0
 public DummyAuthenticator(IStoreDataAsKeyValue store)
 {
     Check.NotNull(store, "store");
     this.store = store;
     Check.InjectedMembers(this);
 }