internal void AddShutdownHook(Runnable r) { ShutdownHook item = new ShutdownHook(); item.Runnable = r; this.shutdownHooks.Add(item); }
private NodeBootstrap(Tuple <IClusterSnapshotControl, ILogger> control, string nodeName) { _clusterSnapshotControl = control; var shutdownHook = new ShutdownHook(nodeName, control); shutdownHook.Register(); }
public LocalChannel(LocalServerChannel parent, LocalChannel peer) : base(parent) { _peer = peer; _localAddress = parent.LocalAddress; _remoteAddress = peer.LocalAddress; Configuration = new DefaultChannelConfiguration(this); _shutdownHook = new ShutdownHook(this); _readTask = new ReadTask(this); }
public LocalChannel() : base(null) { Configuration = new DefaultChannelConfiguration(this); _shutdownHook = new ShutdownHook(this); _readTask = new ReadTask(this); }
public void AddShutdownHook(Runnable r) { ShutdownHook item = new ShutdownHook (); item.Runnable = r; this.shutdownHooks.Add (item); }
internal void AddShutdownHook(IRunnable r) { ShutdownHook item = new ShutdownHook (); item.Runnable = r; _shutdownHooks.Add (item); }