public ClientOutputFilter(UsernameClientAssertion parentAssertion, FilterCreationContext filterContext) : base(parentAssertion.ServiceActor, false, parentAssertion.ClientActor) { this.parentAssertion = parentAssertion; this.filterContext = filterContext; }
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); } }