/// <summary> Default constructor </summary> public RedisGrainStorage( string name, RedisStorageOptions options, SerializationManager serializationManager, IGrainFactory grainFactory, ITypeResolver typeResolver, IOptions <ClusterOptions> clusterOptions, ILoggerFactory loggerFactory) { _name = name; _loggerFactory = loggerFactory; var loggerName = $"{typeof(RedisGrainStorage).FullName}.{name}"; _logger = loggerFactory.CreateLogger(loggerName); _options = options; _serializationManager = serializationManager; _serviceId = clusterOptions.Value.ServiceId; }
/// <summary> /// Constructor /// </summary> /// <param name="options">The option to be validated.</param> /// <param name="name">The option name to be validated.</param> public RedisStorageOptionsValidator(RedisStorageOptions options, string name) { this._options = options; this._name = name; }