예제 #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;
 }