예제 #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;
 }
예제 #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);
        }