コード例 #1
0
 public ApplicationController(IMapper mapper
                              , IDeleteApplicationCommand deleteApplicationCommand
                              , IAddApplicationCommand addApplicationCommand
                              , IEditApplicationCommand editApplicationCommand
                              , GetApplicationByIdQuery getApplicationByIdQuery
                              , IGetVendorByIdQuery getVendorByIdQuery
                              , GetClaimSetNamesQuery getClaimSetNamesQuery
                              , GetProfilesQuery getProfilesQuery
                              , RegenerateApiClientSecretCommand regenerateApiClientSecretCommand
                              , IOdsApiFacadeFactory odsApiFacadeFactory
                              , InstanceContext instanceContext)
 {
     _mapper = mapper;
     _deleteApplicationCommand         = deleteApplicationCommand;
     _addApplicationCommand            = addApplicationCommand;
     _editApplicationCommand           = editApplicationCommand;
     _getApplicationByIdQuery          = getApplicationByIdQuery;
     _getVendorByIdQuery               = getVendorByIdQuery;
     _getClaimSetNamesQuery            = getClaimSetNamesQuery;
     _getProfilesQuery                 = getProfilesQuery;
     _regenerateApiClientSecretCommand = regenerateApiClientSecretCommand;
     _odsApiFacadeFactory              = odsApiFacadeFactory;
     _instanceContext = instanceContext;
 }
コード例 #2
0
    internal Task <IResult> GetClaimSets(GetClaimSetNamesQuery getClaimSetsQuery)
    {
        var calimSets = getClaimSetsQuery.Execute().ToList();

        return(Task.FromResult(AdminApiResponse <List <string> > .Ok(calimSets)));
    }