To use the Microsoft C# programming language to develop your applications and the .NET version is 4.0 or earlier on the Mirage Server, you must perform certain tasks to set up a C# development environment.
Procedure
Results
With the generated client, you can login to Mirage API. For example:
ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true); BasicHttpBinding binding = new BasicHttpBinding { AllowCookies = true, Security = { Mode = BasicHttpSecurityMode.Transport } }; //Connect to Mirage Web Management Server EndpointAddress endpoint = new EndpointAddress(string.Format("https://<server-address>:7443/mirageapi/MitService.svc", address)); Client = new MitServiceClient(binding, endpoint); Client.Login("<username>", "<password>"); Console.WriteLine("Login success!"); //Perform tasks