Esempio n. 1
0
        public DuplexChannelFactory <T> GetDuplexChannelFactory <T>(InstanceContext instanceContext) where T : class
        {
            var context = new CustomizableChannelContext();

            return(GetChannelFactory <DuplexChannelFactory <T>, T>((ep) => new CustomizableDuplexChannelFactory <T, CustomizableChannelContext>(context, instanceContext, ep)));
        }
Esempio n. 2
0
        public ChannelFactory <T> GetSimpleChannelFactory <T>() where T : class
        {
            var context = new CustomizableChannelContext();

            return(GetChannelFactory <ChannelFactory <T>, T>((ep) => new CustomizableChannelFactory <T, CustomizableChannelContext>(context, ep)));
        }
Esempio n. 3
0
 public CustomizableChannel(ICustomizableChannelFactory <TContract> factory, CustomizableChannelContext context)
     : base(typeof(TContract))
 {
     _factory = factory;
     _context = context;
 }