File tree 2 files changed +5
-9
lines changed
dotnet/ServerlessMicroservices.Shared/Services
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,10 @@ public bool IsRunningInContainer()
129
129
130
130
public bool IsEnqueueToOrchestrators ( )
131
131
{
132
- if (
133
- GetEnvironmentVariable ( IsEnqueueToOrchestratorsKey ) != null &&
134
- ! string . IsNullOrEmpty ( GetEnvironmentVariable ( IsEnqueueToOrchestratorsKey ) . ToString ( ) ) &&
135
- GetEnvironmentVariable ( IsEnqueueToOrchestratorsKey ) . ToString ( ) . ToLower ( ) == "true"
136
- )
137
- {
138
- return true ;
139
- }
132
+ // defaults to true
133
+ if ( string . IsNullOrEmpty ( GetEnvironmentVariable ( IsEnqueueToOrchestratorsKey ) ) ) return true ;
140
134
141
- return false ;
135
+ return bool . Parse ( GetEnvironmentVariable ( IsEnqueueToOrchestratorsKey ) ) ;
142
136
}
143
137
144
138
public bool IsPersistDirectly ( )
Original file line number Diff line number Diff line change 10
10
11
11
dotnet run testTrips -- seeddriversurl http:// localhost:7071 -- testurl http:// localhost:7072 / api/ triptestparameters
12
12
13
+ start ' http://localhost:7072/api/activetrips'
14
+
13
15
}
14
16
finally {
15
17
Pop-Location
You can’t perform that action at this time.
0 commit comments