예제 #1
0
        public void ExecuteAction(IServiceProvider serviceProvider, ref object request, ref BaseResponse response)
        {
            StaticDataManagementRequest  requestMessage  = request as StaticDataManagementRequest;
            StaticDataManagementResponse responseMessage = response as StaticDataManagementResponse;

            IStaticDataProvider staticDataProvider = serviceProvider.GetRequiredService(requestMessage.StaticDataProviderType) as IStaticDataProvider;

            responseMessage.StaticData = staticDataProvider.GetData();
        }
        public void Initialize()
        {
            StaticDataManagementRequest request = new StaticDataManagementRequest();

            request.StaticDataProviderType = typeof(T);
            StaticDataManagementResponse response = jmAppClientProvider.CallAction <StaticDataManagementResponse>(ActionNameConstants.StaticDataManagement, request);

            HandleStaticDataResponse(response);
        }