Пример #1
0
        public LinqUserManagementService(IDseSession session, PreparedStatementCache statementCache, IBus bus, UserManagementOptions options)
        {
            if (session == null)
            {
                throw new ArgumentNullException(nameof(session));
            }
            if (statementCache == null)
            {
                throw new ArgumentNullException(nameof(statementCache));
            }
            if (bus == null)
            {
                throw new ArgumentNullException(nameof(bus));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            _session        = session;
            _statementCache = statementCache;
            _bus            = bus;
            _options        = options;

            _userProfileTable     = new Table <LinqDtos.UserProfile>(session);
            _userCredentialsTable = new Table <UserCredentials>(session);
        }
Пример #2
0
 public DataStaxEnterpriseSearch(IDseSession session, PreparedStatementCache statementCache,
                                 IFindServices serviceDiscovery, Func <Uri, IRestClient> createRestClient,
                                 SearchOptions options)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (serviceDiscovery == null)
     {
         throw new ArgumentNullException(nameof(serviceDiscovery));
     }
     if (createRestClient == null)
     {
         throw new ArgumentNullException(nameof(createRestClient));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _session          = session;
     _statementCache   = statementCache;
     _serviceDiscovery = serviceDiscovery;
     _createRestClient = createRestClient;
     _options          = options;
     _dseSearchUri     = null;
 }
Пример #3
0
 public UpdateSearchOnVideoAdded(IDseSession session, PreparedStatementCache statementCache)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     _session        = session;
     _statementCache = statementCache;
 }
Пример #4
0
 public StatisticsServiceImpl(IDseSession session, PreparedStatementCache statementCache)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     _session        = session;
     _statementCache = statementCache;
 }
 public UpdateUploadedVideoWhenPublished(ISession session, PreparedStatementCache statementCache, IBus bus)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (bus == null)
     {
         throw new ArgumentNullException(nameof(bus));
     }
     _session        = session;
     _statementCache = statementCache;
     _bus            = bus;
 }
 public SuggestVideosByTag(ISession session, PreparedStatementCache statementCache, SuggestionsOptions options)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _session        = session;
     _statementCache = statementCache;
     _options        = options;
 }
Пример #7
0
 public RatingsServiceImpl(ISession session, PreparedStatementCache statementCache, IBus bus)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (bus == null)
     {
         throw new ArgumentNullException(nameof(bus));
     }
     _session        = session;
     _statementCache = statementCache;
     _bus            = bus;
 }
Пример #8
0
 public VideoCatalogServiceImpl(IDseSession session, PreparedStatementCache statementCache, IBus bus)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (bus == null)
     {
         throw new ArgumentNullException(nameof(bus));
     }
     _session        = session;
     _statementCache = statementCache;
     _bus            = bus;
     Logger.Information("Video Catalog is initialized");
 }
Пример #9
0
 public DataStaxEnterpriseSuggestedVideos(ISession session, PreparedStatementCache statementCache, IRestClient restClient, SuggestionsOptions options)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (restClient == null)
     {
         throw new ArgumentNullException(nameof(restClient));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _session        = session;
     _statementCache = statementCache;
     _restClient     = restClient;
     _options        = options;
 }
 public UserManagementServiceImpl(IDseSession session, PreparedStatementCache statementCache, IBus bus, UserManagementOptions options)
 {
     if (session == null)
     {
         throw new ArgumentNullException(nameof(session));
     }
     if (statementCache == null)
     {
         throw new ArgumentNullException(nameof(statementCache));
     }
     if (bus == null)
     {
         throw new ArgumentNullException(nameof(bus));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     _session        = session;
     _statementCache = statementCache;
     _bus            = bus;
     _options        = options;
 }