Exemple #1
0
        public DeviceManager(Store storage, GoogleApiClient apiClient)
        {
            if (storage == null)
                throw new ArgumentNullException("storage");

            if (apiClient == null)
                throw new ArgumentNullException("apiClient");

            _storage = storage;
            _apiClient = apiClient;
        }
Exemple #2
0
        public TokenManager(string deviceCode, Store storage, GoogleApiClient apiClient)
        {
            if (deviceCode == null)
                throw new ArgumentNullException("deviceCode");

            if (storage == null)
                throw new ArgumentNullException("storage");

            if (apiClient == null)
                throw new ArgumentNullException("apiClient");

            _deviceCode = deviceCode;
            _storage = storage;
            _apiClient = apiClient;
        }