@@ -281,7 +281,7 @@ protected async Task<IActionResult> InternalAdd(RepresentationParameter jobj)
281281 try
282282 {
283283 var command = new AddRepresentationCommand ( _resourceType , jobj , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) ;
284- var scimRepresentation = await _addRepresentationCommandHandler . Handle ( command , IsPublishEvtsEnabled ) ;
284+ var scimRepresentation = await _addRepresentationCommandHandler . Handle ( command ) ;
285285 var location = GetLocation ( scimRepresentation ) ;
286286 var content = scimRepresentation . ToResponse ( location , false , mergeExtensionAttributes : _options . MergeExtensionAttributes ) ;
287287 if ( IsPublishEvtsEnabled ) await _busControl . Publish ( new RepresentationAddedEvent ( scimRepresentation . Id , scimRepresentation . Version , GetResourceType ( scimRepresentation . ResourceType ) , content , _options . IncludeToken ? Request . GetToken ( ) : string . Empty ) ) ;
@@ -314,7 +314,7 @@ protected async Task<IActionResult> InternalDelete(string id)
314314 _logger . LogInformation ( string . Format ( Global . DeleteResource , id ) ) ;
315315 try
316316 {
317- var representation = await _deleteRepresentationCommandHandler . Handle ( new DeleteRepresentationCommand ( id , _resourceType , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) , IsPublishEvtsEnabled ) ;
317+ var representation = await _deleteRepresentationCommandHandler . Handle ( new DeleteRepresentationCommand ( id , _resourceType , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) ) ;
318318 if ( IsPublishEvtsEnabled ) await _busControl . Publish ( new RepresentationRemovedEvent ( id , representation . Version , GetResourceType ( _resourceType ) , _options . IncludeToken ? Request . GetToken ( ) : string . Empty ) ) ;
319319 return new StatusCodeResult ( ( int ) HttpStatusCode . NoContent ) ;
320320 }
@@ -340,7 +340,7 @@ protected async Task<IActionResult> InternalUpdate(string id, RepresentationPara
340340 _logger . LogInformation ( Global . UpdateResource , id ) ;
341341 try
342342 {
343- var newRepresentation = await _replaceRepresentationCommandHandler . Handle ( new ReplaceRepresentationCommand ( id , _resourceType , representationParameter , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) , IsPublishEvtsEnabled ) ;
343+ var newRepresentation = await _replaceRepresentationCommandHandler . Handle ( new ReplaceRepresentationCommand ( id , _resourceType , representationParameter , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) ) ;
344344 var location = GetLocation ( newRepresentation ) ;
345345 var content = newRepresentation . ToResponse ( location , false , mergeExtensionAttributes : _options . MergeExtensionAttributes ) ;
346346 if ( IsPublishEvtsEnabled ) await _busControl . Publish ( new RepresentationUpdatedEvent ( newRepresentation . Id , newRepresentation . Version , GetResourceType ( _resourceType ) , content , _options . IncludeToken ? Request . GetToken ( ) : string . Empty ) ) ;
@@ -383,7 +383,7 @@ protected async Task<IActionResult> InternalPatch(string id, PatchRepresentation
383383 _logger . LogInformation ( string . Format ( Global . PatchResource , id , patchRepresentation == null ? string . Empty : JsonConvert . SerializeObject ( patchRepresentation ) ) ) ;
384384 try
385385 {
386- var patchResult = await _patchRepresentationCommandHandler . Handle ( new PatchRepresentationCommand ( id , ResourceType , patchRepresentation , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) , IsPublishEvtsEnabled ) ;
386+ var patchResult = await _patchRepresentationCommandHandler . Handle ( new PatchRepresentationCommand ( id , ResourceType , patchRepresentation , _uriProvider . GetAbsoluteUriWithVirtualPath ( ) ) ) ;
387387 if ( ! patchResult . IsPatched ) return NoContent ( ) ;
388388 var newRepresentation = patchResult . SCIMRepresentation ;
389389 var location = GetLocation ( newRepresentation ) ;
0 commit comments