コード例 #1
0
 /// <summary>
 ///     Applies a handler policy to all known message handlers
 /// </summary>
 /// <param name="policy"></param>
 public void GlobalPolicy(IRoutePolicy policy)
 {
     _policies.Add(policy);
 }
コード例 #2
0
        public RouteSettings UsePolicy(IRoutePolicy policy)
        {
            _policies.Add(policy);

            return(this);
        }
コード例 #3
0
 public RouteDomainService(IRouteRepository repository, IRoutePolicy policy, IRouteValidationService validationService, ILeadRepository leadRepository, IImageUrlService imageUrlService)
     : base(repository, policy, validationService)
 {
     LeadRepository  = leadRepository;
     ImageUrlService = imageUrlService;
 }