예제 #1
0
        public void Approve(RmApproval approval, bool isApproved, EndpointAddress address)
        {
            Constants.Bindings bindings = new Constants.Bindings();

            WSResourceFactoryClient approvalClient = new WSResourceFactoryClient(bindings.ServiceMultipleTokenBinding_ResourceFactory, address);

            approvalClient.ClientCredentials.Windows.ClientCredential = this.ClientCredential;
            approvalClient.Approve(approval, isApproved);
        }
예제 #2
0
        public FIMServiceClient(EndpointAddress mexEndpoint, EndpointAddress resourceEndpoint, EndpointAddress resourceFactoryEndpoint, EndpointAddress enumerationEndpoint)
        {
            Constants.Bindings bindings = new Constants.Bindings();

            mexClient               = new MEXClient(bindings.MetadataExchangeHttpBinding_IMetadataExchange, mexEndpoint);
            wsResourceClient        = new WSResourceClient(bindings.ServiceMultipleTokenBinding_Resource, resourceEndpoint);
            wsResourceFactoryClient = new WSResourceFactoryClient(bindings.ServiceMultipleTokenBinding_ResourceFactory, resourceFactoryEndpoint);
            wsEnumerationClient     = new WSEnumerationClient(bindings.ServiceMultipleTokenBinding_Enumeration, enumerationEndpoint);

            requestFactory  = new RequestFactory();
            responseFactory = new ResponseFactory();
            resourceFactory = new RmResourceFactory();
        }