File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ private async Task GetServiceTicket(KerberosClient client)
8888            } 
8989            catch  ( AggregateException  aex ) 
9090            { 
91-                 ICollection < Exception >  exceptions  =  aex . InnerExceptions ; 
91+                 ICollection < Exception >  exceptions  =  aex . InnerExceptions ? . Where ( e  =>   e   !=   null ) ? . ToList ( ) ; 
9292
9393                if  ( exceptions  ==  null ) 
9494                { 
@@ -100,16 +100,16 @@ private async Task GetServiceTicket(KerberosClient client)
100100                    } 
101101                } 
102102
103-                 foreach  ( var  kex  in  exceptions . OfType < KerberosProtocolException > ( ) ) 
103+                 foreach  ( var  ex  in  exceptions . Where ( e  =>   e   !=   null ) ) 
104104                { 
105-                     if  ( kex . Error . ErrorCode  ==  KerberosErrorCode . KRB_AP_ERR_TKT_EXPIRED ) 
105+                     if  ( ex   is   KerberosProtocolException   kex   &&   kex ? . Error . ErrorCode  ==  KerberosErrorCode . KRB_AP_ERR_TKT_EXPIRED ) 
106106                    { 
107107                        await  PurgeTickets ( ) ; 
108108                        await  client . GetServiceTicket ( this . ServicePrincipalName ) ; 
109109                        break ; 
110110                    } 
111111
112-                     this . IO . Writer . WriteLine ( kex . Message ) ; 
112+                     this . IO . Writer . WriteLine ( ex ? . Message   ??   SR . Resource ( "Unknown Error" ) ) ; 
113113                } 
114114            } 
115115        } 
Original file line number Diff line number Diff line change @@ -75,6 +75,15 @@ steps:
7575    codeCoverageTool : Cobertura 
7676    summaryFileLocation : $(Build.SourcesDirectory)/coverlet/reports/Cobertura.xml 
7777
78+ - task : NuGetAuthenticate@0 
79+   displayName : ' NuGet Authenticate' 
80+ - task : NuGetCommand@2 
81+   displayName : ' NuGet push' 
82+   inputs :
83+     command : push 
84+     publishVstsFeed : ' Kerberos.NET/kerberos.net' 
85+     allowPackageConflicts : true 
86+ 
7887- publish : artifacts 
7988  displayName : Publish build packages 
8089  artifact : BuildPackages 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments