-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update transcription enabled storage project (#820)
* update transcription enabled storage project * set default punctuation mode, remove delay in get files
- Loading branch information
Henry van der Vegte
authored
Oct 1, 2020
1 parent
fa6428a
commit acbf6a7
Showing
25 changed files
with
779 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
samples/batch/transcription-enabled-storage/Connector/MessageRetryHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// <copyright file="MessageRetryHelper.cs" company="Microsoft Corporation"> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace Connector | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
public static class MessageRetryHelper | ||
{ | ||
public static TimeSpan GetMessageRetryDelayTime(int retryCount) | ||
{ | ||
var delayInMinutes = Math.Pow(2, Math.Min(retryCount, 8)); | ||
return TimeSpan.FromMinutes(delayInMinutes); | ||
} | ||
} | ||
} |
Oops, something went wrong.