File tree 1 file changed +4
-5
lines changed
src/Isolation/Masa.Contrib.Isolation.UoW.EF
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,11 @@ private string SetConnectionString(string? connectionString = null)
77
77
78
78
private string GetMessage ( )
79
79
{
80
- StringBuilder stringBuilder = new StringBuilder ( ) ;
80
+ List < string > messages = new List < string > ( ) ;
81
81
if ( _environmentContext != null )
82
- stringBuilder . Append ( $ "Environment: [{ _environmentContext . CurrentEnvironment } ], ") ;
82
+ messages . Add ( $ "Environment: [{ _environmentContext . CurrentEnvironment } ]") ;
83
83
if ( _tenantContext != null )
84
- stringBuilder . Append ( $ "Tenant: [{ _tenantContext . CurrentTenant ? . Id ?? "" } ], ") ;
85
- var message = stringBuilder . ToString ( ) ;
86
- return message . Substring ( 0 , message . Length - 2 ) ;
84
+ messages . Add ( $ "Tenant: [{ _tenantContext . CurrentTenant ? . Id ?? "" } ]") ;
85
+ return string . Join ( ", " , messages ) ;
87
86
}
88
87
}
You can’t perform that action at this time.
0 commit comments