Пример #1
0
        /// <summary>
        /// Resets all configuration (Rackspace.NET, OpenStack.NET, Flurl and Json.NET) so that <see cref="Configure"/> can be called again.
        /// </summary>
        public static void ResetDefaults()
        {
            lock (ConfigureLock)
            {
                if (!_isConfigured)
                {
                    return;
                }

                OpenStackNet.ResetDefaults();

                _isConfigured = false;
            }
        }
Пример #2
0
 /// <inheritdoc />
 public new void Dispose()
 {
     OpenStackNet.ResetDefaults();
     base.Dispose();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpTest"/> class.
 /// </summary>
 public HttpTest()
 {
     OpenStackNet.ResetDefaults();
     OpenStackNet.Configuring += SetTestMode;
 }