Skip to content

Commit

Permalink
disable autocomplete in sdk client
Browse files Browse the repository at this point in the history
  • Loading branch information
LoekD committed Apr 9, 2021
1 parent dbfef61 commit fc17039
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Please also make sure all feature additions have a corresponding unit test.

## Release notes:

v7.0.4 (Netstd only)
- Opt out of autocomplete by default.

v7.0.3 (Netstd only)
- Abandon received messages while closing.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public ServiceBusQueueCommunicationListener(Func<IServiceBusCommunicationListene
/// </summary>
protected override void ListenForMessages()
{
var options = new MessageHandlerOptions(ExceptionReceivedHandler);
var options = new MessageHandlerOptions(ExceptionReceivedHandler) { AutoComplete = false };
if (AutoRenewTimeout.HasValue)
{
options.MaxAutoRenewDuration = AutoRenewTimeout.Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ServiceBusSubscriptionCommunicationListener(Func<IServiceBusCommunication
/// </summary>
protected override void ListenForMessages()
{
var options = new MessageHandlerOptions(ExceptionReceivedHandler);
var options = new MessageHandlerOptions(ExceptionReceivedHandler) { AutoComplete = false };
if (AutoRenewTimeout.HasValue)
{
options.MaxAutoRenewDuration = AutoRenewTimeout.Value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<Description>Receive BrokeredMessages in ServiceFabric Services through Service Bus. Add this package to your Reliable Service projects. The ServiceFabric.ServiceBus.Services Class Library can be used in conjunction with ServiceFabric.ServiceBus.Clients (optional)</Description>
<Copyright>2019</Copyright>
<VersionPrefix>7.0.3</VersionPrefix>
<Copyright>2021</Copyright>
<VersionPrefix>7.0.4</VersionPrefix>
<Authors>Loek Duys</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
Expand Down Expand Up @@ -43,8 +43,8 @@


<ItemGroup>
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="3.1.0" />
<PackageReference Include="Microsoft.ServiceFabric.Services" Version="3.2.176" />
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="5.1.2" />
<PackageReference Include="Microsoft.ServiceFabric.Services" Version="5.0.514" />
</ItemGroup>

</Project>
Expand Down

0 comments on commit fc17039

Please sign in to comment.