after stating the facts: The record presents a number of interesting questions, some of which are difficult of solution. In the view which we take of the appeal it is unnecessary to discuss or decide .them. The appeal must be disposed of upon the defendant’s exception to the refusal of his Honor, Judge Wan'd, to set aside the service of summons on the Insurance Commissioner and dismiss the action. It will be noted that, prior to the act of 1893 (chapter 299, sec. 8; Rev., sec. 4806), there was no statute in this State preventing a foreign insurance company and the insured from fixing by agreement the place of the contract. By that statute it is provided that “All contracts of insurance, application for which is taken within this State, shall be deemed to have been made within this State and subject to the laws thereof.” That, in the absence of such a statute, the parties may agree upon the place of the contract, is well settled. 22 Am. and Eng. Enc., 1325. Therefore, the policy, by its express terms, is made a New York contract. This brings us to the consideration of the effect upon the plaintiff’s right to bring the defendant into court by serving summons on the Commissioner of Insurance after the revocation of the power of attorney. The act of 1899, ch. 147 (Rev., sec. 4747), sub-sec. 3, requires every foreign insurance company, before it *131shall be admitted to do business in this State, to file in the office of the Insurance Commissioner “an instrument appointing him and his successor its true and lawful attorney, upon whom all lawful process in any action against it may be served,” and further providing that “the authority thereof shall continue in force irrevocable as long as any liability of the company remains outstanding in this State.”
The defendant, conceding the full force of this provision in the statute, as construed by this Court in Biggs v. Insurance Co., 128 N. C., 5, and Moore v. Insurance Co., 129 N. C., 33, insists that, as against the plaintiff, a resident and citizen of the State of Virginia, suing upon a New York contract, the limitation upon the power of the company to revoke the. power of attorney does not apply. The point has been ruled in accordance with defendant’s contention in Hunter v. Insurance Co., 184 N. Y., 136. Mr. Justice Iliscoch, discussing the language of our statute, says: “Statutes requiring the execution of some such agreement by foreign corporations as is invoked against the defendant here have always been regarded as primarily designed for the protection of the citizens of the State enacting the legislation and who might acquire rights under contracts executed with them, or for their benefit, while they were such citizens.” The learned Justice, speaking of citizens of other States, says: “They are not of the class for whose protection it was originally executed. They have not acquired any rights upon the faith of it.” The contract of insurance being a New York contract, the plaintiff a resident of Virginia, we do not think that he, or his cause of action, comes within either the language or spirit of the portion of the statute which limits the power of the company to revoke its power of attorney. This view is not in conflict with the right secured to every citizen of any of the States to sue in the courts of this State upon any cause of action he may have against defendant, whether a resident of this State or not, provided he finds the defendant in-the State and has *132valid service of process. The Legislature of this - State has the undoubted power to prescribe the terms upon which foreign corporations may come into the State, and to pass statutes for the protection of its' own citizens doing business with it. This is no discrimination against residents of other States. It is a question of procedure, always subject to legislative control, provided it does not violate any constitutional rights of the citizen. Except for the purpose stated in the statute, the defendant had .a right at any time to withdraw from the State and cancel its power of attorney to the Commissioner. Plaintiff is not within the restrictive language of the statute in that respect. The Court erred in refusing the motion. This will be certified to the Superior Court of Martin, to the end that the defendant may have judgment in accordance with its motion and the action be dismissed.
Reversed.