/// <inheritdoc /> public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync( Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration config) { throw new System.NotImplementedException(); }
public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync( Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration config) { return(PreferredContentSession.PinAsync(context, contentHashes, config)); }
/// <inheritdoc /> public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync( Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration configuration) { // Pass through to the basic pin. return(PinAsync(context, contentHashes, configuration.CancellationToken, configuration.UrgencyHint)); }
public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync( Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration config) { return(MultiLevelUtilities.RunManyLevelAsync( GetSessionsInOrder <IReadOnlyContentSession>().ToArray(), contentHashes, (session, hashes) => session.PinAsync(context, hashes, config), p => p.Succeeded)); }
public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync(Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration config) => _local.PinAsync(context, contentHashes, config);
public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync(OperationContext operationContext, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration pinOperationConfiguration) { if (PreferredContentSession is IConfigurablePin configurablePin) { return(configurablePin.PinAsync(operationContext, contentHashes, pinOperationConfiguration)); } throw new InvalidOperationException($"Preferred content session does not have type {nameof(IConfigurablePin)}. Found {PreferredContentSession.GetType()}"); }
/// <inheritdoc /> public Task <IEnumerable <Task <Indexed <PinResult> > > > PinAsync(Context context, IReadOnlyList <ContentHash> contentHashes, PinOperationConfiguration config) { return(PinAsync(context, contentHashes, config.CancellationToken, config.UrgencyHint)); }