コード例 #1
0
ファイル: wcfendpoint.cs プロジェクト: iamwsx05/hms
        /// <summary>
        /// Fac
        /// </summary>
        /// <returns></returns>
        public static ChannelFactory <ISvcUpdate> Fac <ISvcUpdate>()
        {
            ChannelFactory <ISvcUpdate> fac = new ChannelFactory <ISvcUpdate>(WCFEndpoint.Binding);

            WCFEndpoint.SetClientBehavior(fac);
            return(fac);
        }
コード例 #2
0
 public ProxyUpdate()
 {
     Service = WCFEndpoint.Fac <ItfUpdate>().CreateChannel(WCFEndpoint.CommEndpointAddress(this.GetType().Name));
 }