Exemplo n.º 1
0
 protected override void OnClose(TimeSpan timeout)
 {
     if (OpenedChannelFactory != null)
     {
         OpenedChannelFactory.Close(timeout);
     }
 }
Exemplo n.º 2
0
 protected override void OnAbort()
 {
     if (OpenedChannelFactory != null)
     {
         OpenedChannelFactory.Abort();
     }
 }
Exemplo n.º 3
0
 public T GetProperty <T> () where T : class
 {
     if (OpenedChannelFactory != null)
     {
         OpenedChannelFactory.GetProperty <T> ();
     }
     return(null);
 }
        protected override void OnClose(TimeSpan timeout)
        {
            DateTime start = DateTime.Now;

            foreach (var ch in opened_channels.ToArray())
            {
                ch.Close(timeout - (DateTime.Now - start));
            }
            if (OpenedChannelFactory != null)
            {
                OpenedChannelFactory.Close(timeout - (DateTime.Now - start));
            }
        }
Exemplo n.º 5
0
 protected override void OnOpened()
 {
     base.OnOpened();
     OpenedChannelFactory.Open();
 }