Exemplo n.º 1
0
        public DefaultManager(IAntiCsrfConfiguration configuration, IGuidFactory guidFactory)
        {
            configuration.ThrowIfNull("configuration");
            guidFactory.ThrowIfNull("guidFactory");

            _configuration = configuration;
            _guidFactory   = guidFactory;
        }
Exemplo n.º 2
0
		public DefaultManager(IAntiCsrfConfiguration configuration, IGuidFactory guidFactory)
		{
			configuration.ThrowIfNull("configuration");
			guidFactory.ThrowIfNull("guidFactory");

			_configuration = configuration;
			_guidFactory = guidFactory;
		}
        public DefaultNonceValidator(IAntiCsrfConfiguration configuration, IAntiCsrfNonceRepository nonceRepository, ISystemClock systemClock)
        {
            configuration.ThrowIfNull("configuration");
            nonceRepository.ThrowIfNull("nonceRepository");
            systemClock.ThrowIfNull("systemClock");

            _configuration   = configuration;
            _nonceRepository = nonceRepository;
            _systemClock     = systemClock;
        }
		public DefaultNonceValidator(IAntiCsrfConfiguration configuration, IAntiCsrfNonceRepository nonceRepository, ISystemClock systemClock)
		{
			configuration.ThrowIfNull("configuration");
			nonceRepository.ThrowIfNull("nonceRepository");
			systemClock.ThrowIfNull("systemClock");

			_configuration = configuration;
			_nonceRepository = nonceRepository;
			_systemClock = systemClock;
		}
Exemplo n.º 5
0
        public DefaultGenerator(IAntiCsrfConfiguration configuration, IAntiCsrfNonceRepository nonceRepository, IGuidFactory guidFactory, ISystemClock systemClock)
        {
            configuration.ThrowIfNull("configuration");
            nonceRepository.ThrowIfNull("nonceRepository");
            guidFactory.ThrowIfNull("guidFactory");
            systemClock.ThrowIfNull("systemClock");

            _configuration   = configuration;
            _nonceRepository = nonceRepository;
            _guidFactory     = guidFactory;
            _systemClock     = systemClock;
        }
Exemplo n.º 6
0
		public DefaultGenerator(IAntiCsrfConfiguration configuration, IAntiCsrfNonceRepository nonceRepository, IGuidFactory guidFactory, ISystemClock systemClock)
		{
			configuration.ThrowIfNull("configuration");
			nonceRepository.ThrowIfNull("nonceRepository");
			guidFactory.ThrowIfNull("guidFactory");
			systemClock.ThrowIfNull("systemClock");

			_configuration = configuration;
			_nonceRepository = nonceRepository;
			_guidFactory = guidFactory;
			_systemClock = systemClock;
		}
Exemplo n.º 7
0
        public MemoryCacheRepository(IAntiCsrfConfiguration configuration)
        {
            configuration.ThrowIfNull("configuration");

            _nonceCache = new MemoryCache(configuration.MemoryCacheName);
        }
        public MemoryCacheNonceRepository(IAntiCsrfConfiguration configuration)
        {
            configuration.ThrowIfNull("configuration");

            _nonceCache = new MemoryCache(configuration.MemoryCacheName);
        }