Exemplo n.º 1
0
 public ClientOutputFilter(UsernameClientAssertion parentAssertion,
                           FilterCreationContext filterContext)
     : base(parentAssertion.ServiceActor, false, parentAssertion.ClientActor)
 {
     this.parentAssertion = parentAssertion;
     this.filterContext   = filterContext;
 }
Exemplo n.º 2
0
        private void btnCallService_Click(object sender, EventArgs e)
        {
            try
            {
                CameraService.CameraService service = new CameraService.CameraService();

                UsernameClientAssertion assert = new UsernameClientAssertion("user", "password");
                Policy policy = new Policy();
                policy.Assertions.Add(assert);
                service.SetPolicy(policy);

                bool result = service.GetClientCertificateMode();
                MessageBox.Show(result.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }