Example #1
0
 public static void CallMetafileMeasured(this MetagetHooks hooks, FileHash hash, int size)
 {
     hooks.OnMetafileMeasured?.Invoke(new MetafileMeasured
     {
         Hash = hash,
         Size = size
     });
 }
Example #2
0
        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);
        }
Example #3
0
 public MetagetService Build(MetagetHooks hooks)
 {
     return(new MetagetService(parameters, dependencies, hooks, configuration));
 }
Example #4
0
 public MetagetService(MetagetParameters parameters, MetagetDependencies dependencies, MetagetHooks hooks, MetagetConfiguration configuration)
 {
     context = new MetagetContext(parameters, dependencies, hooks, configuration);
 }