@@ -686,7 +686,7 @@ private void ParseFilePart(Dictionary<string, string> parameters, RebufferableBi
686686 // We also want to chop off the newline that is inserted by the protocol.
687687 // We can do this by reducing endPos by the length of newline in this environment
688688 // and encoding
689- FileHandler ( name , filename , contentType , contentDisposition , fullBuffer , endPos - bufferNewlineLength , partNumber ++ , additionalParameters ) ;
689+ FileHandler ? . Invoke ( name , filename , contentType , contentDisposition , fullBuffer , endPos - bufferNewlineLength , partNumber ++ , additionalParameters ) ;
690690
691691 int writeBackOffset = endPos + endPosLength + boundaryNewlineOffset ;
692692 int writeBackAmount = ( prevLength + curLength ) - writeBackOffset ;
@@ -696,7 +696,7 @@ private void ParseFilePart(Dictionary<string, string> parameters, RebufferableBi
696696 }
697697
698698 // No end, consume the entire previous buffer
699- FileHandler ( name , filename , contentType , contentDisposition , prevBuffer , prevLength , partNumber ++ , additionalParameters ) ;
699+ FileHandler ? . Invoke ( name , filename , contentType , contentDisposition , prevBuffer , prevLength , partNumber ++ , additionalParameters ) ;
700700
701701 // Now we want to swap the two buffers, we don't care
702702 // what happens to the data from prevBuffer so we set
@@ -843,7 +843,7 @@ private async Task ParseFilePartAsync(Dictionary<string, string> parameters, Reb
843843 // We also want to chop off the newline that is inserted by the protocl.
844844 // We can do this by reducing endPos by the length of newline in this environment
845845 // and encoding
846- FileHandler ( name , filename , contentType , contentDisposition , fullBuffer , endPos - bufferNewlineLength , partNumber ++ , additionalParameters ) ;
846+ FileHandler ? . Invoke ( name , filename , contentType , contentDisposition , fullBuffer , endPos - bufferNewlineLength , partNumber ++ , additionalParameters ) ;
847847
848848 int writeBackOffset = endPos + endPosLength + boundaryNewlineOffset ;
849849 int writeBackAmount = ( prevLength + curLength ) - writeBackOffset ;
@@ -853,7 +853,7 @@ private async Task ParseFilePartAsync(Dictionary<string, string> parameters, Reb
853853 }
854854
855855 // No end, consume the entire previous buffer
856- FileHandler ( name , filename , contentType , contentDisposition , prevBuffer , prevLength , partNumber ++ , additionalParameters ) ;
856+ FileHandler ? . Invoke ( name , filename , contentType , contentDisposition , prevBuffer , prevLength , partNumber ++ , additionalParameters ) ;
857857
858858 // Now we want to swap the two buffers, we don't care
859859 // what happens to the data from prevBuffer so we set
@@ -898,7 +898,7 @@ private void ParseParameterPart(Dictionary<string, string> parameters, Rebuffera
898898 if ( line . SequenceEqual ( endBoundaryBinary ) ) readEndBoundary = true ;
899899
900900 var part = new ParameterPartBinary ( parameters [ "name" ] , data ) ;
901- ParameterHandler ( part ) ;
901+ ParameterHandler ? . Invoke ( part ) ;
902902 }
903903
904904 /// <summary>
@@ -933,7 +933,7 @@ private async Task ParseParameterPartAsync(Dictionary<string, string> parameters
933933 if ( line . SequenceEqual ( endBoundaryBinary ) ) readEndBoundary = true ;
934934
935935 var part = new ParameterPartBinary ( parameters [ "name" ] , data ) ;
936- ParameterHandler ( part ) ;
936+ ParameterHandler ? . Invoke ( part ) ;
937937 }
938938
939939 /// <summary>
0 commit comments