/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/JobService/ISetPropertyCollection.cs
34 строки
1 KB
Chris Patterson
Reworked Job Properties, Job Type Properties, and Instance Properties to allow better differentiation when building job distribution strategies.
07 окт 2024, 20:47
07 окт 2024, 20:47
448db29
Код
Авторство
О чём код?
namespace MassTransit; using System; using System.Collections.Generic; public interface ISetPropertyCollection : IPropertyCollection { /// <summary> /// Sets a property /// </summary> /// <param name="key"></param> /// <param name="value">The new value, or null to remove the property</param> /// <exception cref="ArgumentNullException"></exception> ISetPropertyCollection Set(string key, string? value); /// <summary> /// Sets a property, overwriting an existing value if <paramref name="overwrite" /> is true /// </summary> /// <param name="key"></param> /// <param name="value">The new value, or null to remove the property</param> /// <param name="overwrite"></param> /// <exception cref="ArgumentNullException"></exception> ISetPropertyCollection Set(string key, object? value, bool overwrite = true); /// <summary> /// Set multiple properties from an existing collection, any null values a removed from the property collection /// </summary> /// <param name="properties"></param> /// <param name="overwrite"></param> /// <returns></returns> ISetPropertyCollection SetMany(IEnumerable<KeyValuePair<string, object?>>? properties, bool overwrite = true); }