39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Configuration;
|
|
|
|
|
|
namespace AllinMassivo
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
int count = 0;
|
|
wsProposta.WsPropostaClient cl = new wsProposta.WsPropostaClient();
|
|
|
|
cl.ClientCredentials.UserName.UserName = ConfigurationSettings.AppSettings["NOMEUTENTE"].ToString();
|
|
cl.ClientCredentials.UserName.Password = ConfigurationSettings.AppSettings["PASSWORD"].ToString();
|
|
cl.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
|
|
try
|
|
{
|
|
count = Convert.ToInt32(ConfigurationSettings.AppSettings["counter"]);
|
|
|
|
cl.caricamentoMassivo(count);
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Console.WriteLine(e.TargetSite);
|
|
Console.WriteLine(e.StackTrace);
|
|
Console.WriteLine(e.Message);
|
|
Console.WriteLine(e.InnerException);
|
|
Console.WriteLine("Press enter to continue...");
|
|
Console.ReadLine();
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
}
|