Reconstruct the context after it's done.

This commit is contained in:
antiduh
2014-06-26 21:56:06 +00:00
parent ef8094d9da
commit 0506420ab4

View File

@@ -147,7 +147,19 @@ namespace TestServer
this.initializing = true;
this.connected = false;
UpdateButtons();
this.serverContext.Dispose();
this.serverContext = new ServerContext(
serverCred,
ContextAttrib.AcceptIntegrity |
ContextAttrib.ReplayDetect |
ContextAttrib.SequenceDetect |
ContextAttrib.MutualAuth |
ContextAttrib.Delegate |
ContextAttrib.Confidentiality
);
this.BeginInvoke( (Action) UpdateButtons );
}