public Fiber GetConfiguredFiber <TChannel>(ConnectionBuilder <TChannel> builder) { Fiber fiber = GetConfiguredFiberFactory()(); builder.AddDisposable(fiber.ShutdownOnDispose(_shutdownTimeout)); return(fiber); }
protected Fiber GetConfiguredFiber(ConnectionBuilder builder) { Fiber fiber = GetConfiguredFiberFactory()(); builder.AddDisposable(fiber.ShutdownOnDispose(_shutdownTimeout)); return(fiber); }
public void Configure(ConnectionBuilder builder) { Fiber fiber = GetConfiguredFiber(builder); var proxy = new WcfChannelProxy(fiber, _endpointUri, _pipeName); builder.AddChannel(proxy); builder.AddDisposable(proxy); }
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); }
public void AddDisposable(IDisposable disposable) { _builder.AddDisposable(disposable); }