File tree Expand file tree Collapse file tree 3 files changed +22
-16
lines changed
Expand file tree Collapse file tree 3 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 1- using ClassTranscribeDatabase . Models ;
2- using Microsoft . AspNetCore . Identity ;
3- using Microsoft . EntityFrameworkCore ;
4- using Microsoft . Extensions . Logging ;
5- using System ;
1+ using System ;
62using System . Collections . Generic ;
73using System . IO ;
84using System . Linq ;
9- using System . Threading ;
5+ using System . Threading . Tasks ;
6+
7+ using Microsoft . AspNetCore . Identity ;
8+ using Microsoft . EntityFrameworkCore ;
9+ using Microsoft . Extensions . Logging ;
10+
11+ using ClassTranscribeDatabase . Models ;
1012
1113namespace ClassTranscribeDatabase
1214{
@@ -60,7 +62,7 @@ public void Seed()
6062 _logger . LogInformation ( $ "Sleeping for { retrySeconds } seconds") ;
6163 // Thread.Sleep(1000 * retrySeconds);
6264
63- Task . Delay ( TimeSpan . fromSeconds ( retrySeconds ) ) . Wait ( ) ;
65+ Task . Delay ( TimeSpan . FromSeconds ( retrySeconds ) ) . Wait ( ) ;
6466
6567 }
6668 else
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ private void CreateSharedConnection()
6363 return ;
6464 }
6565 var recovery = Convert . ToBoolean ( Globals . appSettings . RABBITMQ_AUTOMATIC_RECOVERY ) ;
66- var heartbeat = Convert . ToUInt32 ( Globals . appSettings . RABBITMQ_HEARTBEAT_SECONDS )
66+ var heartbeat = Convert . ToUInt32 ( Globals . appSettings . RABBITMQ_HEARTBEAT_SECONDS ) ;
6767 Logger . LogInformation ( $ "Creating RabbitMQ connection recovery:{ recovery } heartbeat:{ heartbeat } ") ;
6868 var factory = new ConnectionFactory ( )
6969 {
@@ -72,8 +72,8 @@ private void CreateSharedConnection()
7272 UserName = Globals . appSettings . ADMIN_USER_ID ,
7373 Password = Globals . appSettings . ADMIN_PASSWORD ,
7474 Port = Convert . ToUInt16 ( Globals . appSettings . RABBITMQ_PORT ) , // 5672
75- AutomaticRecoveryEnabled = recovery
76- RequestedHeartbeat = TimeSpan . fromSeconds ( heartbeat )
75+ AutomaticRecoveryEnabled = recovery ,
76+ RequestedHeartbeat = TimeSpan . FromSeconds ( heartbeat )
7777 } ;
7878 // A developer may still want to checkout old code which uses the old env branch
7979 // so just complain loudly for now
Original file line number Diff line number Diff line change 1- using ClassTranscribeDatabase ;
2- using ClassTranscribeDatabase . Services ;
3- using ClassTranscribeDatabase . Services . MSTranscription ;
1+ using System ;
2+ using System . Threading ;
3+ using System . Threading . Tasks ;
44using Microsoft . EntityFrameworkCore ;
55using Microsoft . Extensions . Configuration ;
66using Microsoft . Extensions . DependencyInjection ;
77using Microsoft . Extensions . Logging ;
88using Microsoft . Extensions . Options ;
9- using System ;
10- using TaskEngine . Tasks ;
11- using System . Threading ;
9+
1210using Newtonsoft . Json . Linq ;
11+
1312using static ClassTranscribeDatabase . CommonUtils ;
13+ using ClassTranscribeDatabase ;
14+ using ClassTranscribeDatabase . Services ;
15+ using ClassTranscribeDatabase . Services . MSTranscription ;
16+
17+ using TaskEngine . Tasks ;
1418
1519namespace TaskEngine
1620{
You can’t perform that action at this time.
0 commit comments