WCF在列表中发送参数未来证明?

时间:2015-05-21 07:36:41

标签: c# wcf

我正在构建一个非常快速的原型来证明一个概念,我有几个WCF方法,每个方法的参数数量都超过10个,并且强烈感觉它们将来可能会增加。

将代码发送到列表中的所有参数是未来的证明吗?

由于参数是Int或string,这就是我的建议(让我们忘记OOP原则,因为它是原型)

var cacRouteViewMod = angular.module('cacRouteViewMod', ['ngRoute', 'cacLib']);

cacRouteViewMod.config(['$routeProvider', function($routeProvider, $routeParams) {
  $routeProvider    
    .when('/countries/:country/capital', {
      templateUrl: 'countries/country.html',
      controller: 'countryDetailCtrl',
      resolve: {
        geoname: ['$route', 'getGeoname', function($route, getGeoname) {
          return getGeoname($route.current.params.country);
        }],
        country: ['getCountry', 'geoname', function(getCountry, geoname) {
          return getCountry(geoname.countryCode);
        }],
        neighbors: ['$route', 'getNeighbors', function($route, getNeighbors) {
          return getNeighbors($route.current.params.country);
        }]
      }
   })
});

换句话说,通过WCF发送大量参数时最佳做法是什么?

0 个答案:

没有答案