예제 #1
0
        /*
         * Initializes the request.
         */
        private void InitializeRequest()
        {
            // Create the communications.
            this.communication = new Communications();

            // Create the authentication.
            this.authentication          = new authentication();
            this.authentication.user     = this.config.GetValue("username");
            this.authentication.password = this.config.GetValue("password");

            // Determine the directories.
            requestDirectory  = Path.Combine(this.config.GetValue("requestDirectory"), "Requests") + Path.DirectorySeparatorChar;
            responseDirectory = Path.Combine(this.config.GetValue("responseDirectory"), "Responses") + Path.DirectorySeparatorChar;

            // Create the time and file.
            this.cnpTime = new CNPTime();
            this.cnpFile = new CNPFile();
        }
예제 #2
0
 public void SetCnpFile(CNPFile cnpFile)
 {
     this.cnpFile = cnpFile;
 }