Exemplo n.º 1
0
        public UserService(DatabaseContext databaseContext, IHostMatcher hostMatcher)
            : this()
        {
            Contract.Requires<ArgumentNullException>(databaseContext != null, "databaseContext");
            Contract.Requires<ArgumentNullException>(hostMatcher != null, "hostMatcher");

            this.hostMatcher = hostMatcher;
            this.databaseContext = databaseContext;
        }
Exemplo n.º 2
0
        public NetworkService(DatabaseContext databaseContext)
        {
            Contract.Requires<ArgumentNullException>(databaseContext != null, "databaseContext");

            this.databaseContext = databaseContext;
        }