/// <summary>
 /// Creates a new instance of the core. Ideally this should be created by Ninject to ensure all dependencies are handled appropriately.
 /// Note: A TerminalBindings class lives in the Terminal.Core.Ninject.BindingModules namespace. Use this when building your Ninject kernel to ensure proper dependency injection.
 /// 
 /// Sampel: IKernel kernel = new StandardKernel(new TerminalBindings());
 /// </summary>
 /// <param name="commands">A list of all commands available to the application.</param>
 /// <param name="userRepository">The user repository used to retrieve the current user from the database.</param>
 public TerminalApi(List<ICommand> commands, IDataBucket dataBucket)
 {
     _commands = commands;
     _dataBucket = dataBucket;
     _commandContext = new CommandContext();
     TerminalEvents = new TerminalEvents();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of the core. Ideally this should be created by Ninject to ensure all dependencies are handled appropriately.
 /// Note: A TerminalBindings class lives in the Terminal.Core.Ninject.BindingModules namespace. Use this when building your Ninject kernel to ensure proper dependency injection.
 ///
 /// Sampel: IKernel kernel = new StandardKernel(new TerminalBindings());
 /// </summary>
 /// <param name="commands">A list of all commands available to the application.</param>
 /// <param name="userRepository">The user repository used to retrieve the current user from the database.</param>
 public TerminalApi(List <ICommand> commands, IDataBucket dataBucket)
 {
     _commands       = commands;
     _dataBucket     = dataBucket;
     _commandContext = new CommandContext();
     TerminalEvents  = new TerminalEvents();
 }
Ejemplo n.º 3
0
 public INVITE(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 4
0
 public SETTINGS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 5
0
 public ALIAS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 6
0
 public BOARDS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 7
0
 public STATS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 8
0
 public BOARDS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 9
0
 public SETTINGS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 10
0
 public ApiController(TerminalApi terminalApi, IDataBucket dataBucket, UIContext uiContext)
 {
     _terminalApi = terminalApi;
     _dataBucket  = dataBucket;
     _uiContext   = uiContext;
 }
Ejemplo n.º 11
0
 public MESSAGE(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 12
0
 public MESSAGES(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 13
0
 public INVITE(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 14
0
 public LOGIN(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 15
0
 public STATS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 16
0
 public LOGOUT(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 17
0
 public USER(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 18
0
 public USER(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 19
0
 public REGISTER(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 20
0
 public REGISTER(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 21
0
 public LOGOUT(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 22
0
 public LOGIN(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 23
0
 public TOPIC(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 24
0
 public TOPIC(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
Ejemplo n.º 25
0
 public ALIAS(IDataBucket dataBucket)
 {
     _dataBucket = dataBucket;
 }
 public ApiController(TerminalApi terminalApi, IDataBucket dataBucket, UIContext uiContext)
 {
     _terminalApi = terminalApi;
     _dataBucket = dataBucket;
     _uiContext = uiContext;
 }