/// <summary> /// Initializes a new instance of the <see cref="CacheService"/> class. /// </summary> /// <param name="service">Provides access to core services.c</param> /// <param name="connection">Connection to utilized to communicate with the Redis Cache instance.</param> /// <param name="dataProtector">Provides protection for data being cached.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="service"/> is null. /// or /// <paramref name="connection"/> is null. /// or /// <paramref name="dataProtector"/> is null. /// </exception> public CacheService(IExplorerService service, IConnectionMultiplexer connection, IDataProtector dataProtector) { service.AssertNotNull(nameof(service)); connection.AssertNotNull(nameof(connection)); dataProtector.AssertNotNull(nameof(dataProtector)); this.connection = connection; this.protector = dataProtector; this.service = service; }