コード例 #1
0
 public IdentityResourcesController(
     IGetIdentityResources getIdentityResources,
     IGetIdentityResourceByName getIdentityResourceByName,
     IUpsertIdentityResource upsertIdentityResource,
     IDeleteResource deleteResource)
 {
     this.getIdentityResources      = getIdentityResources;
     this.getIdentityResourceByName = getIdentityResourceByName;
     this.upsertIdentityResource    = upsertIdentityResource;
     this.deleteResource            = deleteResource;
     this.createValidator           = new CreateIdentityResourceModelValidator();
     this.updateValidator           = new UpdateIdentityResourceModelValidator();
 }
コード例 #2
0
 public DeleteResourceCommandHandler(IDomainEventDispatcher eventDispatcher, IDeleteResource deleteResource)
 {
     _eventDispatcher = eventDispatcher;
     _deleteResource  = deleteResource;
 }