/// <summary> /// Creates a store that uses the specified folder for saving data. /// If the folder does not exist, it will be created. /// </summary> /// <param name="folder"></param> private FasterConversationTable(string folder, Configuration config) { _rootFolder = folder; _config = config; _conversationsStore = new ConversationsStore(Path.Combine(folder, "conversations"), config.ConversationsCapacity); _framesStore = new RawFramesStore(Path.Combine(folder, "frames"), (int)config.FramesCapacity); }
public FrameProvider(RawFramesStore framesStore, IObserver <TValue> observer, FrameProcessor <TValue> processor) { this._cancel = new CancellationTokenSource(); this._framesStore = framesStore; this._observer = observer; this._processor = processor; // The frames generator will be run on another thread Task.Factory.StartNew(new Action(Generate)); }
internal ClientSession(RawFramesStore framesStore, ClientSession <ulong, SpanByte, Empty, byte[], IFunctionContext <byte[]>, Functions> session) { this._framesStore = framesStore; this._session = session; }