Exemple #1
0
 public RouteCookie(AppFunc next, string cookieName, string inRouteParam, string outRouteParam)
 {
     this.converter = new CookieConverter(next, cookieName, Inbound, Outbound);
     this._cookieName = cookieName;
     this.inRouteParam = inRouteParam;
     this.outRouteParam = outRouteParam;
 }
Exemple #2
0
 private SessionCookie(AppFunc next, string passphrase, Action<IOwinRequest, string> inbound, Func<IOwinResponse, string> outbound)
 {
     this.converter = new CookieConverter(next, cookieName, inbound, outbound);
     this.passphrase = passphraseToBytes(passphrase);
 }
Exemple #3
0
 public SessionCookie(AppFunc next, string environmentKey, string passphrase)
 {
     this.converter = new CookieConverter(next, cookieName, this.injectSessionToRequest, this.extractSessionFromResponse);
     this.passphrase = passphraseToBytes(passphrase);
     this.environmentKey = environmentKey;
 }