Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating an ISS manual client in C#
// SecurityMode.Transport enables HTTPS
var binding = new WSHttpBinding(SecurityMode.Transport)
{
Security =
{
Mode = SecurityMode.Transport,
Message = {ClientCredentialType = MessageCredentialType.None},
Transport =
{
ClientCredentialType = HttpClientCredentialType.InheritedFromHost,
ProxyCredentialType = HttpProxyCredentialType.None,
Realm = string.Empty
}
}
};
var manualReviewServiceClient = new ManualReviewServiceClient(
binding,
new EndpointAddress("https://[SYNERGY URL]/ManualReviewService")
);
// Add credentials
manualReviewServiceClient.ClientCredentials.UserName.UserName = "[USERNAME]";
manualReviewServiceClient.ClientCredentials.UserName.Password = "[PASSWORD]";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment