public ApiModule(RouteRegistrar routes)
		{
			routes.RegisterServicesInto(
				this,
				AllTypes.InAssembly.Where(
					x => x.Namespace.StartsWith("Restall.Nancy.Demo.ServiceRouting.Api") && x.Name.EndsWith("Service")));
		}
Пример #2
0
 public ServiceModule(RouteRegistrar routes)
 {
     routes.RegisterServicesInto(this, AllServiceTypes);
 }