Ejemplo n.º 1
0
        /// <summary>
        ///     Initializes the client
        /// </summary>
        /// <param name="action">The configuration action</param>
        public static void Initialize(Action <IClientConfiguration> action)
        {
            var clientConfiguration = new ClientConfiguration();

            action?.Invoke(clientConfiguration);

            DefaultRequestOptions = clientConfiguration.RequestOptions;

            UrlProvider = clientConfiguration.UrlProvider ?? new UrlProvider();
            Logger      = clientConfiguration.Logger ?? new DefaultConnectClientLogger();

            IsInitialized = true;
        }
Ejemplo n.º 2
0
 /// <inheritDoc />
 public void WithLogger(IConnectClientLogger logger)
 {
     Logger = logger;
 }