public InternalAccessorManager(IOptionsMonitor <DataExtensionOptions> optionsMonitor,
                                   IAccessorMigrator migrator, IAccessorResolver resolver, IShardingManager shardingManager)
    {
        _optionsMonitor  = optionsMonitor;
        _migrator        = migrator;
        _shardingManager = shardingManager;

        Accessors = resolver.ResolveAccessors();
        if (Accessors.Count < 1)
        {
            throw new ArgumentNullException($"The accessors not found, verify that accessor extensions are registered. ex. \"services.AddDbContext<TContext>(opts => opts.UseXXX<Database>().UseAccessor());\"");
        }
    }
Exemplo n.º 2
0
 public DataService(
     IAccessorResolver <IDataAccessor> dataAccessor)
 {
     DataAccessor = dataAccessor.Accessor;
 }
Exemplo n.º 3
0
 public PrimitiveBuilder(IAccessorResolver accessorResolver,
                         Stream indicesStream,
                         Dictionary <int, int> indicesAccessorIndexToByteOffset) =>
 (this.accessorResolver, this.indicesStream, this.indicesAccessorIndexToByteOffset) = (