protected override void Initialize(RequestContext requestContext) {
         
         base.Initialize(requestContext);

         this.config = requestContext.RouteData.DataTokens["Configuration"] as ContactConfiguration
            ?? new ContactConfiguration();

         if (this.config.ContactSenderResolver != null)
            this.service = this.config.ContactSenderResolver();

         if (this.service == null)
            this.service = new ContactSender();

         this.service.Configuration = this.config;
      }
 public ContactController(ContactSender service) {
    this.service = service;
 }