<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Rebus;
using Rebus.Configuration;

namespace HermaFx.Rebus.Sagas
{
	public static class SagaLockingExtensions
	{
		public static RebusSagasConfigurer WithSagaLocking(this RebusSagasConfigurer configurer, ISagaLockingProvider provider
			, TimeSpan? timeout = null)
		{
			var manager = new SagaLockingManager(configurer.Backbone, provider, timeout);
			return configurer;
		}
	}
}<commit_msg>Added description for RebusSagaLockingExtension<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Rebus;
using Rebus.Configuration;

namespace HermaFx.Rebus.Sagas
{
	public static class SagaLockingExtensions
	{
		/// <summary>
		/// Extension to allow saga locking while handling messages.
		/// </summary>
		/// <param name="configurer">The own RebusSagaConfigurer instance</param>
		/// <param name="provider">ISagaLockingProvider instance implementation</param>
		/// <param name="timeout">Nullable Timespan to allow lock retry until TimeOut reached</param>
		/// <returns>The own RebusSagaConfigurer Instance</returns>
		public static RebusSagasConfigurer WithSagaLocking(this RebusSagasConfigurer configurer, ISagaLockingProvider provider
			, TimeSpan? timeout = null)
		{
			var manager = new SagaLockingManager(configurer.Backbone, provider, timeout);
			return configurer;
		}
	}
}
{'fraction_non_alphanumeric': 0.09018567639257294, 'fraction_numerical': 0.0, 'mean_word_length': 5.313807531380753, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3303278', 'n_tokens_mistral': 473, 'n_tokens_neox': 449, 'n_words': 114}