예제 #1
0
 /// <summary>
 /// Resume (continue) prior client session with FASTER with advanced functions; used during recovery from failure.
 /// </summary>
 /// <param name="functions">Callback functions</param>
 /// <param name="sessionId">ID/name of previous session to resume</param>
 /// <param name="commitPoint">Prior commit point of durability for session</param>
 /// <param name="threadAffinitized">For advanced users. Specifies whether session holds the thread epoch across calls. Do not use with async code.
 ///     Ensure thread calls session Refresh periodically to move the system epoch forward.</param>
 /// <param name="sessionVariableLengthStructSettings">Session-specific variable-length struct settings</param>
 /// <returns>Session instance</returns>
 public AdvancedClientSession <Key, Value, Input, Output, Context, Functions> ResumeSession <Functions>(Functions functions, string sessionId, out CommitPoint commitPoint, bool threadAffinitized = false,
                                                                                                        SessionVariableLengthStructSettings <Value, Input> sessionVariableLengthStructSettings     = null)
     where Functions : IAdvancedFunctions <Key, Value, Input, Output, Context>
 {
     return(_fasterKV.ResumeAdvancedSession <Input, Output, Context, Functions>(functions, sessionId, out commitPoint, threadAffinitized, sessionVariableLengthStructSettings));
 }