Exemple #1
0
        /// <summary>
        /// This is used to make an http proxy and to active it.
        /// </summary>
        /// <param name="EndpoindAddress"></param>
        /// <param name="callbackinstance"></param>
        public void MakeClient(string EndpoindAddress, RemoteType type, object callbackinstance)
        {
            EndpointAddress endpointAddress = new EndpointAddress(EndpoindAddress);
            InstanceContext context         = new InstanceContext(callbackinstance);

            m_Proxy = new RegistrationProxy(context, type.ToBinding(), endpointAddress);
        }
Exemple #2
0
        /// <summary>
        /// Publisher
        /// </summary>
        /// <param name="address">Address</param>
        /// <param name="type">Type</param>
        public Publisher(string address, RemoteType type)
        {
            EndpointAddress endpointAddress = new EndpointAddress(address);

            proxy = new PublisherProxy(type.ToBinding(), endpointAddress);
        }