Ejemplo n.º 1
0
        public IServerStream CreateDataStream()
        {
            int          index  = Interlocked.Increment(ref _lastDataStreamIndex) - 1;
            string       name   = string.Format("chronosprofiler_{0}_data_{1}", _currentApplicationUid.ToString("N").ToUpper(), index);
            ServerStream stream = new ServerStream(name, PipeDirection.In);

            return(stream);
        }
Ejemplo n.º 2
0
 public IServerStream CreateInvokeStream()
 {
     if (_invokeServerStream == null || _invokeServerStream.IsDisposed)
     {
         string name = string.Format("chronosprofiler_{0}_invoke", _currentApplicationUid.ToString("N").ToUpper());
         _invokeServerStream = new ServerStream(name, PipeDirection.InOut);
     }
     return(_invokeServerStream);
 }