initialize() public method

public initialize ( ) : bool
return bool
示例#1
0
 /// <summary>
 /// Constructs a communicator out of the given pipe-name
 /// </summary>
 /// <param name="name">The pipe to build</param>
 public Communicator(string name)
 {
     pipe = new Pipe(name);
     factory = new FunctionCallFactory();
     rfactory = new ResponseFactory();
     initialized = pipe.initialize();
     this.name = name;
 }
示例#2
0
 /// <summary>
 /// Constructs a communicator out of the given pipe-name
 /// </summary>
 /// <param name="name">The pipe to build</param>
 public Communicator(string name)
 {
     pipe        = new Pipe(name);
     factory     = new FunctionCallFactory();
     rfactory    = new ResponseFactory();
     initialized = pipe.initialize();
     this.name   = name;
 }
示例#3
0
 /// <summary>
 /// Checks if the pipe is ready, might block
 /// </summary>
 /// <returns>True if ready, false otherwise</returns>
 public bool connect()
 {
     if (!initialized)
     {
         initialized = pipe.initialize();
     }
     //Thread.Sleep(100);
     return(pipe.isReady());
 }