public USPSComputationMethod(ILocalizationService localizationService,
                              ISettingService settingService,
                              IWebHelper webHelper,
                              USPSService uspsService)
 {
     _localizationService = localizationService;
     _settingService      = settingService;
     _webHelper           = webHelper;
     _uspsService         = uspsService;
 }
예제 #2
0
 static void Main(string[] args)
 {
     using (var service = new USPSService())
     {
         StreamWriter wr = new StreamWriter(@"D:\Inprogram.txt", true);
         wr.WriteLine("I am working fine in program.cs!!");
         wr.Close();
         ServiceBase.Run(service);
     }
 }
 public USPSShipmentTracker(USPSService uspsService)
 {
     _uspsService = uspsService;
 }