示例#1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public SearchModule()
 {
     // Init inbound actions
     this._inboundModuleActions = new ModuleActionCollection();
     this._inboundModuleActions.Add(new ModuleAction("Search", new string[0]));
     this._currentModuleAction = this._inboundModuleActions[0];
 }
 public ModuleActionCollection GetOutboundActions()
 {
     ModuleActionCollection moduleActions = new ModuleActionCollection();
     //has to be connected to a SearchModule
     moduleActions.Add(new ModuleAction("SetCategory", new string[0]));
     return moduleActions;
 }
示例#3
0
 private void InitOutboundActions()
 {
     this._outboundModuleActions = new ModuleActionCollection();
     this._outboundModuleActions.Add(new ModuleAction("ViewProfile", new string[1] {"UserId"}));
     this._outboundModuleActions.Add(new ModuleAction("EditProfile", null));
     this._outboundModuleActions.Add(new ModuleAction("Register", null));
     this._outboundModuleActions.Add(new ModuleAction("ResetPassword", null));
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 public SearchModule(ISearchService searchService)
 {
     this._searchService = searchService;
     // Init inbound actions
     this._inboundModuleActions = new ModuleActionCollection();
     this._inboundModuleActions.Add(new ModuleAction("Search", new string[0]));
     this._inboundModuleActions.Add(new ModuleAction("Category", new string[0]));
     this._inboundModuleActions.Add(new ModuleAction("AlphabeticIndex", new string[0]));
     this._currentModuleAction = this._inboundModuleActions[0];
 }
 public ModuleActionCollection GetOutboundActions()
 {
     ModuleActionCollection ac = new ModuleActionCollection();
     ac.Add(new ModuleAction("Search", new string[0]));
     return ac;
 }
 /// <summary>
 /// Returns a list of outbound actions.
 /// </summary>
 /// <returns></returns>
 public ModuleActionCollection GetOutboundActions()
 {
     ModuleActionCollection moduleActions = new ModuleActionCollection();
     // This action is for example compatible with the ViewProfile inbound action of
     // the ProfileModule but it's also possible to write your own Profile module that
     // has a compatible inbound action.
     moduleActions.Add(new ModuleAction("ViewProfile", new string[1] {"UserId"}));
     return moduleActions;
 }