private void Init()
        {
            inputStream  = new CvsStream(new MemoryStream());
            outputStream = new CvsStream(new MemoryStream());

            this.config = SharpCvsLibConfig.GetInstance();
            try {
                if (config.Log.DebugLog.Enabled)
                {
                    requestLog  = new RequestLog();
                    responseLog = new ResponseLog();

                    this.InputStream.RequestMessage.MessageEvent +=
                        new EncodedMessage.MessageHandler(requestLog.Log);
                    this.OutputStream.ResponseMessage.MessageEvent +=
                        new EncodedMessage.MessageHandler(responseLog.Log);
                }
            } catch (Exception e) {
                LOGGER.Error(e);
            }

            if (null == config)
            {
                config = new SharpCvsLibConfig();
            }
            LOGGER.Debug("Config=[" + config.ToString() + "]");

            if (this.repository == null)
            {
                this.repository = DeriveWorkingDirectory();
            }
        }
Example #2
0
 /// <summary>
 /// Constructor.
 ///
 /// // TODO: Write a more useful description.
 /// </summary>
 public ResponseLog()
 {
     this.settings = SharpCvsLibConfig.GetInstance();
 }
Example #3
0
 public virtual void SetUp()
 {
     LOGGER.Debug("Test settings: " + this.Settings);
     LOGGER.Debug("Application settings: " + SharpCvsLibConfig.GetInstance());
     this.GetTempPath();
 }
Example #4
0
 /// <summary>
 /// Constructor.
 ///
 /// // TODO: Write a more useful description.
 /// </summary>
 public RequestLog()
 {
     this.settings = SharpCvsLibConfig.GetInstance();
 }