コード例 #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();
        }
コード例 #2
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);
            _capabilityCache  = new Dictionary <string, IEnumerable <Capability> >();

            RegisterRequestProviders();
            InitializeHttpClient();
        }