c# - How to read multivalued cookie in SignalR? -


How can the multi-spider cookie in the Signal R Hub read?

For example: I have a cookie stored as -

  var myCookie = new nameValueCollection (); MyCookie.Add ("IdOne", "Value1"); MyCookie.Add ("Idtwo", "Value2"); Var webDummyCookie = New Cookie Header Value ("Dummuckie", Mikeuki); reaction. Heidder.educilities (new cookiehard value [] {webDummyCookie});   

How can I get individually for IdOne and IdTwo?

What can I do with the SignalR:

  cookie cookie; //Microsoft.AspNet.SignalR.Cookie var cookies = references request. Cookies; If (Cookies: TreeGate Value (Dummy Cookie, Cookie Outside) & amp; Cookie Value! = Faucet) {var obtained cookie = cookie.value; // This is the problem, as I can not do. Value [& lt; Key & gt;}   

Does anyone know how to do this?

However the question is too old. Hope, it will help others.

I use Signal R 2.2.1.0 and here's the solution:

  var httpContext = Context.Request GetHttpContext (); Var dammicu = http contex request. Cookies ["dummuckie"]; If (dummy! = Null) {var recipes = dummy cookie ["idone"]; // result}    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -