@@ -457,7 +457,7 @@ public static bool IsValidDirectoryEntryName(string name)
457457 public static bool TestFileExists ( string filename )
458458 {
459459 if ( ! File . Exists ( filename ) ) {
460- var messageService = ServiceSingleton . ServiceProvider . GetRequiredService < IMessageService > ( ) ;
460+ var messageService = ServiceSingleton . GetRequiredService < IMessageService > ( ) ;
461461 messageService . ShowWarning ( StringParser . Parse ( "${res:Fileutility.CantFindFileError}" , new StringTagPair ( "FILE" , filename ) ) ) ;
462462 return false ;
463463 }
@@ -556,7 +556,7 @@ public static FileOperationResult ObservedSave(FileOperationDelegate saveFile, s
556556
557557 static FileOperationResult ObservedSaveHandleException ( Exception e , FileOperationDelegate saveFile , string fileName , string message , FileErrorPolicy policy )
558558 {
559- var messageService = ServiceSingleton . ServiceProvider . GetRequiredService < IMessageService > ( ) ;
559+ var messageService = ServiceSingleton . GetRequiredService < IMessageService > ( ) ;
560560 switch ( policy ) {
561561 case FileErrorPolicy . Inform :
562562 messageService . InformSaveError ( fileName , message , "${res:FileUtilityService.ErrorWhileSaving}" , e ) ;
@@ -601,7 +601,7 @@ public static FileOperationResult ObservedSave(NamedFileOperationDelegate saveFi
601601
602602 static FileOperationResult ObservedSaveHandleError ( Exception e , NamedFileOperationDelegate saveFileAs , string fileName , string message , FileErrorPolicy policy )
603603 {
604- var messageService = ServiceSingleton . ServiceProvider . GetRequiredService < IMessageService > ( ) ;
604+ var messageService = ServiceSingleton . GetRequiredService < IMessageService > ( ) ;
605605 switch ( policy ) {
606606 case FileErrorPolicy . Inform :
607607 messageService . InformSaveError ( fileName , message , "${res:FileUtilityService.ErrorWhileSaving}" , e ) ;
@@ -644,7 +644,7 @@ public static FileOperationResult ObservedLoad(FileOperationDelegate loadFile, s
644644
645645 static FileOperationResult ObservedLoadHandleException ( Exception e , FileOperationDelegate loadFile , string fileName , string message , FileErrorPolicy policy )
646646 {
647- var messageService = ServiceSingleton . ServiceProvider . GetRequiredService < IMessageService > ( ) ;
647+ var messageService = ServiceSingleton . GetRequiredService < IMessageService > ( ) ;
648648 switch ( policy ) {
649649 case FileErrorPolicy . Inform :
650650 messageService . InformSaveError ( fileName , message , "${res:FileUtilityService.ErrorWhileLoading}" , e ) ;
0 commit comments