Terminate session - IInstanceContextInitializer close with custom statuscode? RRS feed

  • Question

  • I have a wcf application and i interest to close the instanceContext session with status of UnAutorized status, currently if i using Abort method - it return me InternalServerError.

    It's possible to close with custom statuscode?
    Thursday, December 31, 2015 7:08 AM

All replies

  • Hi

    When you want to close it, you need to call the close method().

    for example,

     ServiceReference1.Service1Client proxy = new ServiceReference1.Service1Client();

    Friday, January 1, 2016 11:44 AM