public void Consume(Product product) { /* The logic that needs for ParamA of SpecificProductA is now * pushed into the Visitor. */ var productAVisitor = new SpecificProductAVisitor(); ICommonInterface commonInterfaceWithParamA = product.GetCommonInterface(productAVisitor); }
//添加监视者 public static void AddObserver(ICommonInterface Observer) { if (ObserverList.Contains(Observer)) { return; } ObserverList.Add(Observer); }
public ServicioService(IEntityBaseRepository <Movimiento> movimientoRepositorio, IEntityBaseRepository <Servicio> servicioRepositorio, ICommonInterface <Direccion> direccionService, ICommonInterface <Asegurado> aseguradoService, ICommonInterface <Vehiculo> vehiculoService, ICorreoService correoService, IEntityBaseRepository <Direccion> direccionRepositorio, IEntityBaseRepository <Sucursal> sucursalRepositorio, IEntityBaseRepository <TipoServicio> tipoServicioRepositorio, IEntityBaseRepository <Conductor> conductorRepositorio, IEntityBaseRepository <Seguimiento> seguimientoRepositorio, IUnitOfWork unitOfWork) { _direccionRepositorio = direccionRepositorio; _sucursalRepositorio = sucursalRepositorio; _tipoServicioRepositorio = tipoServicioRepositorio; _conductorRepositorio = conductorRepositorio; this._seguimientoRepositorio = seguimientoRepositorio; _servicioRepositorio = servicioRepositorio; _movimientoRepositorio = movimientoRepositorio; _direccionService = direccionService; _aseguradoService = aseguradoService; _vehiculoService = vehiculoService; _correoService = correoService; _unitOfWork = unitOfWork; }
public AseguradoraController(ICommonInterface<Aseguradora> aseguradoraSevice) { _aseguradoraSevice = aseguradoraSevice; }
public RolesController(ICommonInterface<Sucursal> sucursalSevice, IRolService rolService) { _rolService = rolService; }
public ServicioController(ICommonInterface<Servicio> servicioService, ICommonInterface<Seguimiento> seguimientoService, IServicioService servicioServiceExt) { _servicioService = servicioService; _servicioServiceExt = servicioServiceExt; _seguimientoService = seguimientoService; }
public Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : this(browserComponent, notificationInterface, commonInterface, pluginManager, browser => CreateSetupObject(browser, notificationInterface)) { }
public Example(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager) : base(browserComponent, notificationInterface, commonInterface, pluginManager, CreateSetupObject) { }
public NotificationBridgeObject(INotificationInterface notificationInterface, ICommonInterface commonInterface) : base(commonInterface) { this.i = notificationInterface; }
protected Tweet(IBrowserComponent browserComponent, INotificationInterface notificationInterface, ICommonInterface commonInterface, PluginManager pluginManager, Func <NotificationBrowser, BrowserSetup> setup) : base(browserComponent, setup) { this.browserComponent.PageLoadEnd += BrowserComponentOnPageLoadEnd; this.browserComponent.AttachBridgeObject("$TD", new NotificationBridgeObject(notificationInterface, commonInterface)); this.notificationInterface = notificationInterface; this.pluginManager = pluginManager; this.pluginManager.Register(PluginEnvironment.Notification, browserComponent); }
public CiudadesController(ICommonInterface <Ciudad> ciudadSevice, ICiudadService ciudadServiceExt) { _ciudadSevice = ciudadSevice; _ciudadServiceExt = ciudadServiceExt; }
public HomeController(Lazy <IInterface> method, ICommonInterface <IWTypeClass, IInterface> commonInterface) { this.method = method; this.commonInterface = commonInterface; }
public UsuariosController(ICommonInterface <Sucursal> sucursalSevice, IUsuarioService usuarioService) { _usuarioService = usuarioService; }
public CiudadesController(ICommonInterface<Ciudad> ciudadSevice, ICiudadService ciudadServiceExt) { _ciudadSevice = ciudadSevice; _ciudadServiceExt = ciudadServiceExt; }
protected CommonBridge(ICommonInterface i) { this.i = i; }
public AseguradoraController(ICommonInterface <Aseguradora> aseguradoraSevice) { _aseguradoraSevice = aseguradoraSevice; }
public SucursalesController(ICommonInterface <Sucursal> sucursalSevice, ISucursalService sucursalSeviceExt) { _sucursalSevice = sucursalSevice; _sucursalServiceExt = sucursalSeviceExt; }
public SeguimientosController(ICommonInterface <Seguimiento> seguimientoService, ISeguimientoService seguimientoServiceExtend, IServicioService servicioServiceExt) { _seguimientoService = seguimientoService; _seguimientoServiceExtend = seguimientoServiceExtend; _servicioServiceExt = servicioServiceExt; }
public RolesController(ICommonInterface <Sucursal> sucursalSevice, IRolService rolService) { _rolService = rolService; }
public EstadosController(ICommonInterface <Estado> estadoService) { _estadoService = estadoService; }
public UsuariosController(ICommonInterface<Sucursal> sucursalSevice, IUsuarioService usuarioService) { _usuarioService = usuarioService; }
public SucursalesController(ICommonInterface<Sucursal> sucursalSevice, ISucursalService sucursalSeviceExt) { _sucursalSevice = sucursalSevice; _sucursalServiceExt = sucursalSeviceExt; }
public EstadosController(ICommonInterface<Estado> estadoService) { _estadoService = estadoService; }