示例#1
0
        public ShareFileClient(string baseUri, Configuration configuration = null)
            : this()
        {
            BaseUri = new Uri(baseUri);

            Configuration   = configuration ?? Configuration.Default();
            CookieContainer = new CookieContainer();
            Logging         = new LoggingProvider(Configuration.Logger);

            CredentialCache   = CredentialCacheFactory.GetCredentialCache();
            Serializer        = GetSerializer();
            LoggingSerializer = GetLoggingSerializer(this);

            RegisterRequestProviders();
        }
        public ShareFileClient(string baseUri, Configuration configuration = null)
            : this()
        {
            BaseUri = new Uri(baseUri);

            Configuration   = configuration ?? Configuration.Default();
            CookieContainer = new CookieContainer();
            Logging         = new LoggingProvider(Configuration.Logger);

            CredentialCache   = CredentialCacheFactory.GetCredentialCache();
            Serializer        = GetSerializer();
            LoggingSerializer = GetLoggingSerializer(this);
            _capabilityCache  = new Dictionary <string, IEnumerable <Capability> >();

            RegisterRequestProviders();
            InitializeHttpClient();
        }