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