Ejemplo n.º 1
0
 protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
 {
     var service = new MailServiceHost(serviceType, baseAddresses);
     //service.Interceptors.Add(new AuthorizationInterceptor());
     service.Interceptors.Add(new FormatterInterceptor());
     service.MaxMessageSize = 25 * 1024 * 1024;
     return service;
 }
Ejemplo n.º 2
0
        protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
        {
            var service = new MailServiceHost(serviceType, baseAddresses);

            //service.Interceptors.Add(new AuthorizationInterceptor());
            service.Interceptors.Add(new FormatterInterceptor());
            service.MaxMessageSize = 25 * 1024 * 1024;
            return(service);
        }