コード例 #1
0
    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());\"");
        }
    }
コード例 #2
0
ファイル: DataService.cs プロジェクト: build2021/example-web
 public DataService(
     IAccessorResolver <IDataAccessor> dataAccessor)
 {
     DataAccessor = dataAccessor.Accessor;
 }
コード例 #3
0
ファイル: Gltf.cs プロジェクト: weedgirl69/graphics
 public PrimitiveBuilder(IAccessorResolver accessorResolver,
                         Stream indicesStream,
                         Dictionary <int, int> indicesAccessorIndexToByteOffset) =>
 (this.accessorResolver, this.indicesStream, this.indicesAccessorIndexToByteOffset) = (