public MsSqlPersistence(MsSqlPersistenceOptions options) : base(options)
        {
            _options = options;

            if (_options.Serializer == null)
            {
                throw new MsSqlPersistenceException("MsSqlOptions should provide a custom Serializer");
            }
        }
Beispiel #2
0
        public MsSqlPersistence(MsSqlPersistenceOptions options)
        {
            _options = options;
            _logger  = _options.LoggerFactory.CreateLogger($"MsSqlPersistence-{options.StreamsTableName}");

            if (_options.Serializer == null)
            {
                throw new MsSqlPersistenceException("MsSqlOptions should provide a custom Serializer");
            }
        }