/// <summary>
        /// Store commands in a custom data storage
        /// </summary>
        /// <param name="storage">The storage</param>
        /// <returns>this</returns>
        /// <remarks>The memory is used per default</remarks>
        public PipelineDispatcherBuilder StoreCommands(ICommandStorage storage)
        {
            if (storage == null) throw new ArgumentNullException("storage");

            _storageHandler = new StorageHandler(storage);
            return this;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageHandler" /> class.
 /// </summary>
 /// <param name="storage">The storage.</param>
 public StorageHandler(ICommandStorage storage)
 {
     if (storage == null)
     {
         throw new ArgumentNullException("storage");
     }
     _storage = storage;
 }
Exemplo n.º 3
0
        /// <summary>
        /// Store commands in a custom data storage
        /// </summary>
        /// <param name="storage">The storage</param>
        /// <returns>this</returns>
        /// <remarks>The memory is used per default</remarks>
        public PipelineDispatcherBuilder StoreCommands(ICommandStorage storage)
        {
            if (storage == null)
            {
                throw new ArgumentNullException("storage");
            }

            _storageHandler = new StorageHandler(storage);
            return(this);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StorageHandler" /> class.
 /// </summary>
 /// <param name="storage">The storage.</param>
 public StorageHandler(ICommandStorage storage)
 {
     if (storage == null) throw new ArgumentNullException("storage");
     _storage = storage;
 }
Exemplo n.º 5
0
 public static IClientLogicContext Create(ISerializator serializator, ICommandStorage commandStorage, ITestExternalAPI api)
 {
     return(null);
     //return new InternalContext(serializator, commandStorage, api);
 }
Exemplo n.º 6
0
 public CommandSelector(IRepository <Models.User> userRepository, ICommandStorage commandStorage, IStringLocalizer <Command> stringLocalizer)
 {
     userRepo  = userRepository;
     commands  = commandStorage;
     localizer = stringLocalizer;
 }