This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class GenericHashTable<TKey, TValue> : IDictionary<TKey, TValue> | |
{ | |
private Hashtable _hashtable; | |
public GenericHashTable() | |
{ | |
_hashtable = Hashtable.Synchronized(new Hashtable()); | |
} | |
public TValue this[TKey key] { | |
get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;================================================================= | |
; User Interface Message strings | |
;================================================================= | |
SspiLoginPromptHeaderMessage=Login with your credentials. | |
;================================================================== | |
; Argument range exceptions | |
;================================================================== | |
ValueMustBeNonNegative=The value of this argument must be non-negative. | |
ValueMustBeInRange=The value of this argument must fall within the range {0} to {1}. | |
ValueMustBeOne=The value of this argument must be 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bindings | |
• BasicHttpBinding / BasicHttpsBinding | |
• WsHttpBinding | |
• NetTcpBinding | |
• NetNamedPipeBinding | |
• NetMsmqBinding (Flexibility of any cloud service provided queues) | |
• WSFederationHttpBinding | |
* UdpBinding | |
• WebHttpBinding | |
Message Exchange |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
var client = new SimpleServiceClient(); | |
client.OpenAsync().GetAwaiter().GetResult(); | |
client.DelayedResponseAsync(2000).GetAwaiter().GetResult(); | |
var channel = client.InnerChannel; | |
var httpChannelFactory = client.InnerChannel.GetProperty<IChannelFactory>(); | |
var cacheField = httpChannelFactory.GetType().GetField("_httpClientCache", BindingFlags.NonPublic | BindingFlags.Instance); | |
var httpClientCache = cacheField.GetValue(httpChannelFactory); | |
var cacheDictionaryField = httpClientCache.GetType().GetField("_items", BindingFlags.NonPublic | BindingFlags.Instance); |