public static void CallMetafileMeasured(this MetagetHooks hooks, FileHash hash, int size) { hooks.OnMetafileMeasured?.Invoke(new MetafileMeasured { Hash = hash, Size = size }); }
public MetagetContext(MetagetParameters parameters, MetagetDependencies dependencies, MetagetHooks hooks, MetagetConfiguration configuration) { this.parameters = parameters; this.dependencies = dependencies; this.hooks = hooks; this.configuration = configuration; queue = new LeakQueue <MetagetContext>(this); }
public MetagetService Build(MetagetHooks hooks) { return(new MetagetService(parameters, dependencies, hooks, configuration)); }
public MetagetService(MetagetParameters parameters, MetagetDependencies dependencies, MetagetHooks hooks, MetagetConfiguration configuration) { context = new MetagetContext(parameters, dependencies, hooks, configuration); }