/// <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;
        }
 /// <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;
 }
Esempio 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);
        }
 /// <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;
 }
Esempio n. 5
0
 public static IClientLogicContext Create(ISerializator serializator, ICommandStorage commandStorage, ITestExternalAPI api)
 {
     return(null);
     //return new InternalContext(serializator, commandStorage, api);
 }
Esempio n. 6
0
 public CommandSelector(IRepository <Models.User> userRepository, ICommandStorage commandStorage, IStringLocalizer <Command> stringLocalizer)
 {
     userRepo  = userRepository;
     commands  = commandStorage;
     localizer = stringLocalizer;
 }