|
|
От: | Thunderbolt2 | |
| Дата: | 27.06.16 15:19 | ||
| Оценка: | |||
дальше использую эту куку, и там всё ок.string sharedCookie;
using (AuthServiceReference.AuthenticationServiceClient clientAuth = new AuthServiceReference.AuthenticationServiceClient())
{
using (new OperationContextScope(clientAuth.InnerChannel))
{
bool isLogin = clientAuth.Login("UserName", "UserPass", string.empty, false);
HttpResponseMessageProperty response = (HttpResponseMessageProperty)
OperationContext.Current.IncomingMessageProperties[
HttpResponseMessageProperty.Name];
sharedCookie = response.Headers["Set-Cookie"];
}
}