Пример #1
0
 public ContainerActionFilter(IMenuService menuService, SecurityHelper securityHelper, I18NManager i18NManager, IControllerFinder controllerFinder)
 {
     _menuService      = menuService;
     _securityHelper   = securityHelper;
     _i18NManager      = i18NManager;
     _controllerFinder = controllerFinder;
 }
Пример #2
0
 public CommandManager(IWorkSpaceContext caller, BarManager manager)
 {
     this._commands         = new Dictionary <string, IUICommand>();
     this._caller           = caller;
     this._barManager       = manager;
     this._dynamicGroups    = new Dictionary <string, Codon>();
     this._controllerFinder = caller.ControllerFinder;
 }
Пример #3
0
 public void Dispose()
 {
     this._commands.Clear();
     this._barManager       = null;
     this._caller           = null;
     this._controllerFinder = null;
     this._dynamicGroups.Clear();
 }
Пример #4
0
 public void Dispose()
 {
     this._workspace         = null;
     this._actionParameters  = null;
     this._iControllerFinder = null;
     this._iWorkspaceInfo    = null;
     this._processer         = null;
 }
Пример #5
0
        public void TestInitialise()
        {
            _Snapshot = Factory.TakeSnapshot();

            _AppDomainWrapper = MockHelper.FactoryImplementation <ITypeFinder>();
            _AllTypes         = new List <Type>();
            _AppDomainWrapper.Setup(r => r.GetAllTypes()).Returns(_AllTypes);

            _ControllerFinder = Factory.Resolve <IControllerFinder>();
        }
Пример #6
0
 public WorkSpaceContext(IWorkspaceInfo workspaceInfo,
                         IControllerFinder controllerFinder,
                         IWorkspace1 workspace,
                         ActionParameters actionParameters,
                         IProcessInfo processer)
 {
     this._iWorkspaceInfo    = workspaceInfo;
     this._workspace         = workspace;
     this._iControllerFinder = controllerFinder;
     this._actionParameters  = actionParameters;
     this._processer         = processer;
 }
Пример #7
0
 /// <summary>
 /// custom command init
 /// </summary>
 /// <param name="commandId"></param>
 /// <param name="source"></param>
 /// <param name="checkForViewId"></param>
 /// <param name="item"></param>
 /// <param name="action"></param>
 public UICommand(string commandId,
                  CommandSources source,
                  string checkForViewId,
                  BarItem item,
                  ICommand action,
                  IEnumerable <ICondition> conditions,
                  IControllerFinder finder
                  )
 {
     this._controllerFinder = finder;
     this._conditions       = new List <ICondition>();
     this._commandId        = commandId;
     this._ribbonPath       = string.Empty;
     this._source           = source;
     this._checkForViewId   = checkForViewId;
     this._barItem          = item;
     this._actionCommand    = action;
     this._conditions.AddRange(conditions);
     this.BarItem.ItemClick += _barItem_ItemClick;
 }
Пример #8
0
 /// <summary>
 /// dynamic command init
 /// </summary>
 /// <param name="commandId"></param>
 /// <param name="source"></param>
 /// <param name="checkForViewId"></param>
 /// <param name="item"></param>
 /// <param name="action"></param>
 /// <param name="groupName"></param>
 public UICommand(string commandId,
                  CommandSources source,
                  BarSubItem item,
                  ICommand action,
                  IEnumerable <ICondition> conditions,
                  string groupName,
                  IRunTimeCommandRigister cmdRegister,
                  IControllerFinder finder)
 {
     this._conditions        = new List <ICondition>();
     this._commandId         = commandId;
     this._ribbonPath        = string.Empty;
     this._source            = source;
     this._checkForViewId    = string.Empty;
     this._ribbonPath        = string.Empty;
     this._barItem           = item;
     this._actionCommand     = action;
     this.BarItem.ItemClick += _barItem_ItemClick;
     this._groupName         = groupName;
     this._conditions.AddRange(conditions);
     this._runTimeCommandRigister = cmdRegister;
     this._controllerFinder       = finder;
 }
Пример #9
0
 public NinjectControllerModule(params Assembly[] assemblies)
 {
     _finder = new ConventionControllerFinder(assemblies);
 }
Пример #10
0
 public DashboardItemSiteCssBuilder(IDashboardItemRepository repository, I18NManager i18NManager, IControllerFinder controllerFinder)
 {
     _repository       = repository;
     _i18NManager      = i18NManager;
     _controllerFinder = controllerFinder;
 }
Пример #11
0
 public RouteGenerator(IRouting routing, IControllerFinder controllerFinder, IActionFinder actionFinder)
 {
     _routing = routing;
     _actionFinder = actionFinder;
     _controllerFinder = controllerFinder;
 }
 public WindsorControllerFactory(IControllerFinder controllerFinder)
 {
     this.controllerFinder = controllerFinder;
 }
Пример #13
0
 /// <summary>
 /// Create a content route handler with the provided controller factory
 /// </summary>
 /// <param name="controllerFinder">A services that can find a controller for a content item</param>
 /// <param name="controllerFactory">The object that will create our controllers for us - this is only used to provide a non-default controller Factory.</param>
 public ContentRouteHandler(IControllerFinder controllerFinder, IControllerFactory controllerFactory)
     : base(controllerFactory)
 {
     this.controllerFinder = controllerFinder;
 }
Пример #14
0
 /// <summary>
 /// Create a new default content route handler
 /// </summary>
 /// <param name="controllerFinder">A services that can find a controller for a content item</param>
 public ContentRouteHandler(IControllerFinder controllerFinder)
     : base()
 {
     this.controllerFinder = controllerFinder;
 }
Пример #15
0
 public NinjectControllerModule(params Assembly[] assemblies)
 {
     _finder = new ConventionControllerFinder(assemblies);
 }
Пример #16
0
 public XmlReflectionMenuService(I18NManager i18NManager, IControllerFinder controllerFinder)
 {
     _i18NManager      = i18NManager;
     _controllerFinder = controllerFinder;
 }
Пример #17
0
 public WindsorControllerFactory(IControllerFinder controllerFinder)
 {
     this.controllerFinder = controllerFinder;
 }