Exemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of <see cref="UsersManager"/>.
        /// </summary>
        /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
        /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
        /// <param name="operationTimeout"></param>
        public UsersManager(ILogger log, IPEndPoint httpEndPoint, TimeSpan operationTimeout)
        {
            Ensure.NotNull(log, "log");
            Ensure.NotNull(httpEndPoint, "httpEndPoint");

            _client       = new UsersClient(log, operationTimeout);
            _httpEndPoint = httpEndPoint;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of <see cref="UsersManager"/>.
        /// </summary>
        /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
        /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
        /// <param name="operationTimeout"></param>
        public UsersManager(ILogger log, IPEndPoint httpEndPoint, TimeSpan operationTimeout)
        {
            Ensure.NotNull(log, "log");
            Ensure.NotNull(httpEndPoint, "httpEndPoint");

            _client = new UsersClient(log, operationTimeout);
            _httpEndPoint = httpEndPoint;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a new instance of <see cref="UsersManager"/>.
        /// </summary>
        /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
        /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
        /// <param name="operationTimeout"></param>
        public UsersManager(ILogger log, EndPoint httpEndPoint, TimeSpan operationTimeout, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
        {
            Ensure.NotNull(log, "log");
            Ensure.NotNull(httpEndPoint, "httpEndPoint");

            _client       = new UsersClient(log, operationTimeout);
            _httpEndPoint = httpEndPoint;
            _httpSchema   = httpSchema;
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates a new instance of <see cref="UsersManager"/>.
        /// </summary>
        /// <param name="log">An instance of <see cref="ILogger"/> to use for logging.</param>
        /// <param name="httpEndPoint">HTTP endpoint of an Event Store server.</param>
        /// <param name="operationTimeout"></param>
        /// <param name="tlsTerminatedEndpoint"></param>
        /// <param name="httpMessageHandler"></param>
        public UsersManager(ILogger log, EndPoint httpEndPoint, TimeSpan operationTimeout, bool tlsTerminatedEndpoint = false, HttpMessageHandler httpMessageHandler = null)
        {
            Ensure.NotNull(log, "log");
            Ensure.NotNull(httpEndPoint, "httpEndPoint");

            _client       = new UsersClient(log, operationTimeout, httpMessageHandler);
            _httpEndPoint = httpEndPoint;
            _httpSchema   = tlsTerminatedEndpoint ? EndpointExtensions.HTTPS_SCHEMA : EndpointExtensions.HTTP_SCHEMA;
        }