locked
Implement constructor DI on asmx. Web Service RRS feed

  • Question

  • User-308948172 posted

    Hi, 

    I've been searching the whole day and haven't find the right one.

    I was wondering how can I implement a constructor DI of a  .asmx Web Service. If there's a good article out there regarding this matter

    Like this

    public class Service
    {
        private String msg = "";
        public Service(String msg)
        {
            this.msg = msg;
        }
    
        [WebMethod]
        public String Message()
        {
            return this.msg;
        }
    }


    Thanks in advance

    Saturday, July 26, 2014 5:38 AM

Answers