コード例 #1
0
        public Fiber GetConfiguredFiber <TChannel>(ConnectionBuilder <TChannel> builder)
        {
            Fiber fiber = GetConfiguredFiberFactory()();

            builder.AddDisposable(fiber.ShutdownOnDispose(_shutdownTimeout));

            return(fiber);
        }
コード例 #2
0
        protected Fiber GetConfiguredFiber(ConnectionBuilder builder)
        {
            Fiber fiber = GetConfiguredFiberFactory()();

            builder.AddDisposable(fiber.ShutdownOnDispose(_shutdownTimeout));

            return(fiber);
        }
コード例 #3
0
        public void Configure(ConnectionBuilder builder)
        {
            Fiber fiber = GetConfiguredFiber(builder);

            var proxy = new WcfChannelProxy(fiber, _endpointUri, _pipeName);

            builder.AddChannel(proxy);
            builder.AddDisposable(proxy);
        }
コード例 #4
0
        public static Fiber GetFiberUsingConfiguredFactory <T, TChannel>(this FiberFactoryConfiguratorImpl <T> configurator,
                                                                         ConnectionBuilder <TChannel> builder)
            where T : class
        {
            FiberFactory fiberFactory = configurator.GetConfiguredFiberFactory();
            Fiber        fiber        = fiberFactory();

            builder.AddDisposable(fiber.ShutdownOnDispose(configurator.ShutdownTimeout));

            return(fiber);
        }
コード例 #5
0
 public void AddDisposable(IDisposable disposable)
 {
     _builder.AddDisposable(disposable);
 }