Aggiunto NLOG x dataUploader
Fix e pulizia data uploader Aggiunto instalelr x DataUploader
This commit is contained in:
@@ -39,6 +39,14 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.0.0\lib\net45\NLog.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="NLog.Web, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.Web.2.0.0.0\lib\net35\NLog.Web.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
@@ -59,7 +67,9 @@
|
||||
<ItemGroup>
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="DemoPage.aspx" />
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="FullSync.aspx" />
|
||||
<Content Include="images\LogoSteamware.png" />
|
||||
<Content Include="SyncDoc.aspx" />
|
||||
<Content Include="Web.config" />
|
||||
</ItemGroup>
|
||||
@@ -96,6 +106,15 @@
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="logs\PlaceHolder.file" />
|
||||
<None Include="NLog.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="NLog.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Properties\PublishProfiles\Zip.pubxml" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
@@ -103,10 +122,14 @@
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<NameOfLastUsedPublishProfile>Zip</NameOfLastUsedPublishProfile>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
|
||||
Binary file not shown.
+12
-13
@@ -8,24 +8,23 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<h1>WebSCR DataUploader</h1>
|
||||
<i>Pagina di riferimento per progetto upload dati da Sigla++ Trony Rigamonti a WebSCR@steamware</i>
|
||||
<br />
|
||||
<br />
|
||||
Per effettuare test utilizzare la <a href="DemoPage.aspx">Demo Page</a>
|
||||
<br />
|
||||
Per l'uso in produzione / continuativo vanno richiamate
|
||||
<div>
|
||||
<img src="images/LogoSteamware.png" alt="Steamware" style="float:right;" />
|
||||
<h1>WebSCR DataUploader</h1>
|
||||
<i>Pagina di riferimento per progetto upload dati da Sigla++ Trony Rigamonti a WebSCR@steamware</i>
|
||||
<br />
|
||||
<br />
|
||||
<%--Per effettuare test utilizzare la <a href="DemoPage.aspx">Demo Page</a>
|
||||
<br />--%>
|
||||
Per l'uso in produzione / continuativo vanno richiamate
|
||||
<ul>
|
||||
<li>periodicamente la pagina di <b>FullSync</b></li>
|
||||
<li>su richiesta utente la pagina di <b>SyncDoc</b></li>
|
||||
</ul>
|
||||
<i>NB: tutte le configurazioni sono tutte contenute le file web.config</i>
|
||||
<i>NB: il demo punta a db access di esempio e non a DB2</i>
|
||||
<div style="border-top: 1px solid #696969; text-align:right;margin-top:40px;">
|
||||
@2015-<%: DateTime.Now.Year %> Steamware
|
||||
<div style="border-top: 1px solid #696969; text-align: right; margin-top: 40px;">
|
||||
@2015-<%: DateTime.Now.Year %> Steamware
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using NLog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
@@ -11,8 +12,11 @@ namespace DataUploader
|
||||
{
|
||||
public partial class FullSync : System.Web.UI.Page
|
||||
{
|
||||
private static Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
DateTime tick = DateTime.Now;
|
||||
// verifico se vado in modalità demo o meno...
|
||||
bool demoMode = false;
|
||||
try
|
||||
@@ -41,6 +45,7 @@ namespace DataUploader
|
||||
{
|
||||
lblOut.Text += string.Format("<br/>{0:000}) {1}", i + 1, urlsUpdate[i]);
|
||||
}
|
||||
logger.Info("Effettuato DEMO upload FULL SYNC: durata {0} msec", DateTime.Now.Subtract(tick).TotalMilliseconds);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -55,6 +60,14 @@ namespace DataUploader
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
try
|
||||
{
|
||||
logger.Info("Effettuato upload FULL SYNC: durata {0} msec", DateTime.Now.Subtract(tick).TotalMilliseconds);
|
||||
}
|
||||
catch
|
||||
{
|
||||
logger.Info("Effettuato upload FULL SYNC: durata {0} sec", DateTime.Now.Subtract(tick).Seconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+167
-30
@@ -4,11 +4,16 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Configuration;
|
||||
using System.Data.Odbc;
|
||||
using System.Configuration;
|
||||
using NLog;
|
||||
|
||||
namespace DataUploader
|
||||
{
|
||||
public class GestData
|
||||
{
|
||||
|
||||
private static Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
protected GestData()
|
||||
{
|
||||
setupConnString();
|
||||
@@ -21,8 +26,12 @@ namespace DataUploader
|
||||
{
|
||||
conn = new OdbcConnection();
|
||||
// ho creato un DSN di sistema a nome "DB_Sigla" cui faccio riferimento (32 perché 32 bit x mia demo... ho dovuto convertire accdb in mdb...)
|
||||
string connectionString = "Dsn=DB_Sigla32;Initial Catalog=DB2_TESDOCUM;"; // qui va sistemato correttamente
|
||||
//string connectionString = "Dsn=DB_Sigla32;Initial Catalog=TESDOCUM;"; // Questa va su un MDB di cui esiste un DSN
|
||||
//string connectionString = "Driver={Microsoft Access Driver(*.mdb, *.accdb)};DBQ=C:\\DB_SIGLA.accdb;";
|
||||
//string connectionString = "Dsn=DITTA1;Initial Catalog=TESDOCUM;"; // Questa non funziona senza una password eslpicita, anche se esiste un DSN DITTA1 con pwd salvata
|
||||
//string connectionString = "Dsn=DITTA1;Uid=DB2;Pwd=ccL21x$1wow;Initial Catalog=TESDOCUM;"; // Questa funziona se esiste un DSN DITTA1
|
||||
//string connectionString = "Driver={IBM DB2 ODBC DRIVER};DataBase=DITTA1; HostName=RigaSRV02; Protocol=TCPIP;Port=50000;Uid=DB2;Pwd=ccL21x$1wow"; //questa funziona anche senza DSN esistente
|
||||
string connectionString = ConfigurationManager.AppSettings["connString"];
|
||||
conn.ConnectionString = connectionString;
|
||||
}
|
||||
|
||||
@@ -35,31 +44,135 @@ namespace DataUploader
|
||||
/// <returns></returns>
|
||||
public string[] getNewDocsUrls(int numeroFrom)
|
||||
{
|
||||
|
||||
// VA FATTO, è un FAKE x cui NON recupera dati, va costruito codice SQL x recuperare ogni doc NON ancora caricato, e poi caricato il doc va caricato anche il cliente, seguire esempio successivo
|
||||
|
||||
|
||||
// ipotesi: si caricano maxDocsToUpload documenti alal volta (e quindi altrettanti clienti)
|
||||
int maxDocsToUpload = Convert.ToInt32(ConfigurationManager.AppSettings["maxDocsToUpload"]);
|
||||
string[] answ = new string[maxDocsToUpload * 2]; // 2 stringhe, una x doc e 1 x cliente x ogni invio...
|
||||
string[] rDoc = new string[19];
|
||||
string[] rDoc = new string[20];
|
||||
string[] rCli = new string[12];
|
||||
string comandoDoc;
|
||||
|
||||
// qui va fatto ciclo x spazzare 1 ad 1 i docuemnti ed i relativi clienti
|
||||
|
||||
for (int i = 0; i < 19; i++)
|
||||
{
|
||||
rDoc[i] = "";
|
||||
if (!Convert.ToBoolean(ConfigurationManager.AppSettings["queryFormatDB2"]))
|
||||
{ // query in formato ACCESS 2010
|
||||
comandoDoc = string.Format(@"SELECT TOP {0}
|
||||
TESDOCUM.TIPOPROTOC, TESDOCUM.NUMERO, TESDOCUM.ESERPROTOC,
|
||||
TESDOCUM.NUMEPROTOC, TESDOCUM.DATAPROTOC, TESDOCUM.ESERRIFERI,
|
||||
TESDOCUM.NUMERIFERI, TESDOCUM.TIPORIFERI, TESDOCUM.DATARIFERI,
|
||||
TESDOCUM.NUMEDOCRIF, TESDOCUM.DATADOCRIF, TESDOCUM.ESERCOLLEG,
|
||||
TESDOCUM.CLI_FOR, TESDOCUM.DESTINATAR, TESDOCUM.RGSOC_DEST,
|
||||
TESDOCUM.INDIR_DEST, TESDOCUM.LOCAL_DEST, TESDOCUM.CAP_DEST,
|
||||
TESDOCUM.ULT_AGG, TESDOCUM.ANNOTAZION
|
||||
FROM TESDOCUM
|
||||
WHERE (CLng(TESDOCUM.NUMERO) > ({1}))
|
||||
AND (TESDOCUM.TIPOPROTOC IN ('OC', 'DC'))
|
||||
ORDER BY TESDOCUM.NUMERO
|
||||
",
|
||||
maxDocsToUpload, numeroFrom);
|
||||
}
|
||||
for (int i = 0; i < 11; i++)
|
||||
else
|
||||
{ // query in formato DB2
|
||||
comandoDoc = string.Format(@"SELECT
|
||||
TESDOCUM.TIPOPROTOC, TESDOCUM.NUMERO, TESDOCUM.ESERPROTOC,
|
||||
TESDOCUM.NUMEPROTOC, TESDOCUM.DATAPROTOC, TESDOCUM.ESERRIFERI,
|
||||
TESDOCUM.NUMERIFERI, TESDOCUM.TIPORIFERI, TESDOCUM.DATARIFERI,
|
||||
TESDOCUM.NUMEDOCRIF, TESDOCUM.DATADOCRIF, TESDOCUM.ESERCOLLEG,
|
||||
TESDOCUM.CLI_FOR, TESDOCUM.DESTINATAR, TESDOCUM.RGSOC_DEST,
|
||||
TESDOCUM.INDIR_DEST, TESDOCUM.LOCAL_DEST, TESDOCUM.CAP_DEST,
|
||||
TESDOCUM.ULT_AGG, TESDOCUM.ANNOTAZION
|
||||
FROM TESDOCUM
|
||||
WHERE (INT(TESDOCUM.NUMERO) > ({1}))
|
||||
AND (TESDOCUM.TIPOPROTOC IN ('OC', 'DC'))
|
||||
ORDER BY TESDOCUM.NUMERO
|
||||
FETCH FIRST {0} ROWS ONLY
|
||||
",
|
||||
maxDocsToUpload, numeroFrom);
|
||||
}
|
||||
// try/catch x db e ciclo su dati...
|
||||
try
|
||||
{
|
||||
rCli[i] = "";
|
||||
conn.Open();
|
||||
|
||||
// dati documento
|
||||
int num = 0;
|
||||
using (OdbcCommand com = new OdbcCommand(comandoDoc, conn))
|
||||
{
|
||||
using (OdbcDataReader reader = com.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
rDoc[i] = reader.GetString(i).Trim().Replace(" ", "+");
|
||||
}
|
||||
catch
|
||||
{
|
||||
rDoc[i] = "";
|
||||
}
|
||||
}
|
||||
|
||||
// il campo 12 è il cod cliente!
|
||||
rCli[0] = rDoc[12];
|
||||
|
||||
// cellulare e email trovati in USRCLIFO, relazionato su CODSIGLA
|
||||
string comandoCli = string.Format(@"SELECT CLIFO.CODICE, CLIFO.RAGIONESOC, CLIFO.COFI,
|
||||
CLIFO.TEL, USRCLIFO.CELNM AS CELL,
|
||||
CASE WHEN USRCLIFO.CELNM <> ' ' THEN 1 ELSE 0 END AS ENABLE_SMS,
|
||||
USRCLIFO.E_MAILL AS EMAIL,
|
||||
CLIFO.INDIR1, CLIFO.CAP, CLIFO.LOCALITA,
|
||||
CLIFO.PROVINCIA, '' AS NoteCli
|
||||
FROM CLIFO INNER JOIN USRCLIFO
|
||||
ON CLIFO.CODICE = USRCLIFO.CODSIGLA
|
||||
WHERE CLIFO.TIPO='C'
|
||||
AND CLIFO.CODICE = '{0}'",
|
||||
rCli[0]);
|
||||
|
||||
try
|
||||
{
|
||||
using (OdbcCommand comCli = new OdbcCommand(comandoCli, conn))
|
||||
{
|
||||
using (OdbcDataReader readerCli = comCli.ExecuteReader())
|
||||
{
|
||||
while (readerCli.Read())
|
||||
{
|
||||
for (int j = 0; j < 12; j++)
|
||||
{
|
||||
try
|
||||
{
|
||||
rCli[j] = readerCli.GetString(j).Trim().Replace(" ", "+");
|
||||
}
|
||||
catch
|
||||
{
|
||||
rCli[j] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// formatto answ... prima CLI poi DOCS...
|
||||
answ[num++] = createUrlCli(rCli);
|
||||
answ[num++] = createUrlDoc(rDoc);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error("Eccezione in comandoCli{0}Comando: {1}{0}{2}", Environment.NewLine, comandoCli, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error("Eccezione{0}Comando: {1}{0}{2}", Environment.NewLine, comandoDoc, ex);
|
||||
}
|
||||
|
||||
|
||||
// caricati i 2 record vanno costruiti gli url di risposta... accodando 2 alla volta doc / cliente
|
||||
answ[0] = createUrlDoc(rDoc);
|
||||
answ[1] = createUrlCli(rCli);
|
||||
finally
|
||||
{
|
||||
conn.Close();
|
||||
}
|
||||
|
||||
// end ciclo, resituisco tutti i records
|
||||
return answ;
|
||||
@@ -74,17 +187,28 @@ namespace DataUploader
|
||||
{
|
||||
string[] answ = new string[2]; // 2 stringhe, una x doc e 1 x cliente x ogni invio...
|
||||
// per ogni record trovato compongo un record DOCS ed uno CLI
|
||||
string[] rDoc = new string[19];
|
||||
string[] rDoc = new string[20];
|
||||
string[] rCli = new string[12];
|
||||
|
||||
// effettuo chaimata ODBC e recupero dati
|
||||
try
|
||||
{
|
||||
conn.Open();
|
||||
string tipoDoc = CodDoc.Substring(0,2);
|
||||
string NumDoc = CodDoc.Replace(tipoDoc,"");
|
||||
string tipoDoc = CodDoc.Substring(0, 2);
|
||||
string NumDoc = CodDoc.Replace(tipoDoc, "");
|
||||
// questa è la vera stringa SQL
|
||||
string comandoDoc = string.Format("SELECT DB2_TESDOCUM.TIPOPROTOC, DB2_TESDOCUM.NUMERO, DB2_TESDOCUM.ESERPROTOC, DB2_TESDOCUM.NUMEPROTOC, DB2_TESDOCUM.DATAPROTOC, DB2_TESDOCUM.ESERRIFERI, DB2_TESDOCUM.NUMERIFERI, DB2_TESDOCUM.TIPORIFERI, DB2_TESDOCUM.DATARIFERI, DB2_TESDOCUM.NUMEDOCRIF, DB2_TESDOCUM.DATADOCRIF, DB2_TESDOCUM.ESERCOLLEG, DB2_TESDOCUM.CLI_FOR, DB2_TESDOCUM.DESTINATAR, DB2_TESDOCUM.RGSOC_DEST, DB2_TESDOCUM.INDIR_DEST, DB2_TESDOCUM.LOCAL_DEST, DB2_TESDOCUM.CAP_DEST, DB2_TESDOCUM.ULT_AGG FROM DB2_TESDOCUM WHERE DB2_TESDOCUM.TIPOPROTOC='{0}' AND DB2_TESDOCUM.NUMEPROTOC ='{1}' AND DB2_TESDOCUM.ESERPROTOC ='{2}';", tipoDoc, NumDoc, Anno);
|
||||
string comandoDoc = string.Format(@"SELECT TESDOCUM.TIPOPROTOC, TESDOCUM.NUMERO, TESDOCUM.ESERPROTOC,
|
||||
TESDOCUM.NUMEPROTOC, TESDOCUM.DATAPROTOC, TESDOCUM.ESERRIFERI,
|
||||
TESDOCUM.NUMERIFERI, TESDOCUM.TIPORIFERI, TESDOCUM.DATARIFERI,
|
||||
TESDOCUM.NUMEDOCRIF, TESDOCUM.DATADOCRIF, TESDOCUM.ESERCOLLEG,
|
||||
TESDOCUM.CLI_FOR, TESDOCUM.DESTINATAR, TESDOCUM.RGSOC_DEST,
|
||||
TESDOCUM.INDIR_DEST, TESDOCUM.LOCAL_DEST, TESDOCUM.CAP_DEST,
|
||||
TESDOCUM.ULT_AGG, TESDOCUM.ANNOTAZION
|
||||
FROM TESDOCUM
|
||||
WHERE TESDOCUM.TIPOPROTOC='{0}'
|
||||
AND TESDOCUM.NUMEPROTOC ='{1}'
|
||||
AND TESDOCUM.ESERPROTOC ='{2}';",
|
||||
tipoDoc, NumDoc, Anno);
|
||||
// dati documento
|
||||
using (OdbcCommand com = new OdbcCommand(comandoDoc, conn))
|
||||
{
|
||||
@@ -92,11 +216,11 @@ namespace DataUploader
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
for (int i = 0; i < 19; i++)
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
rDoc[i] = reader.GetString(i).Trim().Replace(" ","+");
|
||||
rDoc[i] = reader.GetString(i).Trim().Replace(" ", "+");
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -105,14 +229,22 @@ namespace DataUploader
|
||||
}
|
||||
// il campo 12 è il cod cliente!
|
||||
rCli[0] = rDoc[12];
|
||||
// formatto answ...
|
||||
answ[0] = createUrlDoc(rDoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// dati cliente! ATTENZIONE NON HO TROVATO NE EMAIL NE CELL!!! messi valori "empty" al posto giusto... '' x cellulare, 1 x enable sms (dovrebbe essere SOLO SE si trova cellulare) e '' per email, '' per note (se ci fosse qualcosa...)
|
||||
string comandoCli = string.Format("SELECT DB2_CLIFO.CODICE, DB2_CLIFO.RAGIONESOC, DB2_CLIFO.COFI, DB2_CLIFO.TEL, '' AS CELL, 1 AS ENABLE_SMS, '' AS EMAIL, DB2_CLIFO.INDIR1, DB2_CLIFO.CAP, DB2_CLIFO.LOCALITA, DB2_CLIFO.PROVINCIA, '' AS NoteCli FROM DB2_CLIFO WHERE DB2_CLIFO.TIPO='C' AND DB2_CLIFO.CODICE = '{0}';", rCli[0]);
|
||||
// cellulare e email trovati in USRCLIFO, relazionato su CODSIGLA
|
||||
string comandoCli = string.Format(@"SELECT CLIFO.CODICE, CLIFO.RAGIONESOC, CLIFO.COFI,
|
||||
CLIFO.TEL, USRCLIFO.CELNM AS CELL,
|
||||
CASE WHEN USRCLIFO.CELNM <> ' ' THEN 1 ELSE 0 END AS ENABLE_SMS,
|
||||
USRCLIFO.E_MAILL AS EMAIL,
|
||||
CLIFO.INDIR1, CLIFO.CAP, CLIFO.LOCALITA,
|
||||
CLIFO.PROVINCIA, '' AS NoteCli
|
||||
FROM CLIFO INNER JOIN USRCLIFO
|
||||
ON CLIFO.CODICE = USRCLIFO.CODSIGLA
|
||||
WHERE CLIFO.TIPO='C'
|
||||
AND CLIFO.CODICE = '{0}';",
|
||||
rCli[0]);
|
||||
using (OdbcCommand comCli = new OdbcCommand(comandoCli, conn))
|
||||
{
|
||||
using (OdbcDataReader readerCli = comCli.ExecuteReader())
|
||||
@@ -133,12 +265,13 @@ namespace DataUploader
|
||||
}
|
||||
}
|
||||
}
|
||||
// formatto answ...
|
||||
answ[1] = createUrlCli(rCli);
|
||||
// formatto answ... prima CLI poi doc...
|
||||
answ[0] = createUrlCli(rCli);
|
||||
answ[1] = createUrlDoc(rDoc);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageBox.Show(ex.message);
|
||||
logger.Error("Eccezione{0}{1}", Environment.NewLine, ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -156,10 +289,12 @@ namespace DataUploader
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = string.Format(@"{0}?TIPOPROTOC={1}&NUMERO={2}&ESERPROTOC={3}&NUMEPROTOC={4}&DATAPROTOC={5}&ESERRIFERI={6}&NUMERIFERI={7}&TIPORIFERI={8}&DATARIFERI={9}&NUMEDOCRIF={10}&DATADOCRIF={11}&ESERCOLLEG={12}&CLI_FOR={13}&DESTINATAR={14}&RGSOC_DEST={15}&INDIR_DEST={16}&LOCAL_DEST={17}&CAP_DEST={18}&ULT_AGG={19}", ConfigurationManager.AppSettings["remoteDocUrl"], rDoc[0], rDoc[1], rDoc[2], rDoc[3], rDoc[4], rDoc[5], rDoc[6], rDoc[7], rDoc[8], rDoc[9], rDoc[10], rDoc[11], rDoc[12], rDoc[13], rDoc[14], rDoc[15], rDoc[16], rDoc[17], rDoc[18]);
|
||||
answ = string.Format(@"{0}?TIPOPROTOC={1}&NUMERO={2}&ESERPROTOC={3}&NUMEPROTOC={4}&DATAPROTOC={5}&ESERRIFERI={6}&NUMERIFERI={7}&TIPORIFERI={8}&DATARIFERI={9}&NUMEDOCRIF={10}&DATADOCRIF={11}&ESERCOLLEG={12}&CLI_FOR={13}&DESTINATAR={14}&RGSOC_DEST={15}&INDIR_DEST={16}&LOCAL_DEST={17}&CAP_DEST={18}&ULT_AGG={19}&ANNOTAZION={20}", ConfigurationManager.AppSettings["remoteDocUrl"], rDoc[0], rDoc[1], rDoc[2], rDoc[3], rDoc[4], rDoc[5], rDoc[6], rDoc[7], rDoc[8], rDoc[9], rDoc[10], rDoc[11], rDoc[12], rDoc[13], rDoc[14], rDoc[15], rDoc[16], rDoc[17], rDoc[18], rDoc[19]);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{ }
|
||||
{
|
||||
logger.Error("Eccezione in createUrlDoc{0}{1}", Environment.NewLine, exc);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
@@ -175,7 +310,9 @@ namespace DataUploader
|
||||
answ = string.Format("{0}?CodCliente={1}&RagSoc={2}&CodFis={3}&Tel={4}&Cell={5}&EnableSMS={6}&Email={7}&Indir={8}&Cap={9}&Localita={10}&Prov={11}&Note={12}", ConfigurationManager.AppSettings["remoteCliUrl"], rCli[0], rCli[1], rCli[2], rCli[3], rCli[4], rCli[5], rCli[6], rCli[7], rCli[8], rCli[9], rCli[10], rCli[11]);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{ }
|
||||
{
|
||||
logger.Error("Eccezione in createUrlCli{0}{1}", Environment.NewLine, exc);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<targets>
|
||||
<!-- file target -->
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} [${uppercase:${level}}] ${message}" archiveEvery="Day" />
|
||||
|
||||
<!--viewer interattivo sentinel... http://sentinel.codeplex.com/-->
|
||||
<target xsi:type="NLogViewer" name="sentinel" address="udp://127.0.0.1:9999"/>
|
||||
<!--
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<!-- logging rules -->
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
<!--<logger name="*" minlevel="Trace" writeTo="sentinel" />-->
|
||||
</rules>
|
||||
</nlog>
|
||||
@@ -126,6 +126,11 @@
|
||||
<xs:documentation>Ignore further rules if this one matches.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="enabled" type="xs:boolean" default="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLogFilters">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
@@ -147,6 +152,15 @@
|
||||
<xs:enumeration value="Fatal" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="LineEndingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Default" />
|
||||
<xs:enumeration value="CRLF" />
|
||||
<xs:enumeration value="CR" />
|
||||
<xs:enumeration value="LF" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NLogLevelList">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
|
||||
@@ -226,58 +240,6 @@
|
||||
<xs:minLength value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="AspNetBufferingWrapper">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="WrapperTargetBase">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="bufferGrowLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="growBufferAsNeeded" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferGrowLimit" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of log events that the buffer can keep.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Number of log events to be buffered.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="growBufferAsNeeded" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether buffer should grow as needed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AspNetTrace">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AspResponse">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
@@ -540,6 +502,7 @@
|
||||
<xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
|
||||
<xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
@@ -567,6 +530,11 @@
|
||||
<xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The encoding for writing messages to the .</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="errorStream" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
|
||||
@@ -667,6 +635,7 @@
|
||||
<xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -693,6 +662,11 @@
|
||||
<xs:documentation>Indicates whether to send the log messages to the standard error instead of the standard output.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The encoding for writing messages to the .</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
@@ -709,7 +683,6 @@
|
||||
<xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="install-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
|
||||
<xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
|
||||
@@ -762,11 +735,6 @@
|
||||
<xs:documentation>Indicates whether to keep the database connection open between the log events.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useTransactions" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use database transactions. Some data providers require this.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.</xs:documentation>
|
||||
@@ -917,7 +885,8 @@
|
||||
<xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="source" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="source" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="entryType" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -949,11 +918,16 @@
|
||||
<xs:documentation>Name of the machine on which Event Log service is running.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="source" type="xs:string">
|
||||
<xs:attribute name="source" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value to be used as the event Source.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="entryType" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Optional entrytype. When not set, or when not convertable to then determined by </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
@@ -986,30 +960,32 @@
|
||||
<xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="NLog.Targets.LineEndingMode" />
|
||||
<xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
|
||||
<xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
|
||||
<xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
|
||||
<xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
|
||||
<xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="enableArchiveFileCompression" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="forceManaged" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
|
||||
<xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="archiveDateFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="archiveOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -1036,11 +1012,16 @@
|
||||
<xs:documentation>File encoding.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="lineEnding" type="NLog.Targets.LineEndingMode">
|
||||
<xs:attribute name="lineEnding" type="LineEndingMode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Line ending mode.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxArchiveFiles" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Way file archives are numbered.</xs:documentation>
|
||||
@@ -1061,9 +1042,9 @@
|
||||
<xs:documentation>Size in bytes above which log files will be automatically archived.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxArchiveFiles" type="xs:integer">
|
||||
<xs:attribute name="enableArchiveFileCompression" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to compress archive files into the zip archive format.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="forceManaged" type="xs:boolean">
|
||||
@@ -1081,11 +1062,6 @@
|
||||
<xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fileName" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the file to write to.</xs:documentation>
|
||||
@@ -1103,7 +1079,12 @@
|
||||
</xs:attribute>
|
||||
<xs:attribute name="createDirs" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to create directories if they don't exist.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to create directories if they do not exist.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="enableFileDelete" type="xs:boolean">
|
||||
@@ -1121,6 +1102,11 @@
|
||||
<xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxLogFilenames" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of log filenames that should be stored as existing.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="keepFileOpen" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation>
|
||||
@@ -1141,9 +1127,9 @@
|
||||
<xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:attribute name="autoFlush" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Log file buffer size in bytes.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="openFileCacheSize" type="xs:integer">
|
||||
@@ -1151,23 +1137,14 @@
|
||||
<xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="autoFlush" type="xs:boolean">
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
|
||||
<xs:documentation>Log file buffer size in bytes.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="NLog.Targets.LineEndingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Default" />
|
||||
<xs:enumeration value="CRLF" />
|
||||
<xs:enumeration value="CR" />
|
||||
<xs:enumeration value="LF" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Sequence" />
|
||||
@@ -1226,50 +1203,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="FormControl">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="append" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="reverseOrder" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="append" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether log text should be appended to the text of the control instead of overwriting it.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="controlName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of control to which NLog will log write log text.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="formName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the Form on which the control is located.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="reverseOrder" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Whether new log entry are added to the start or the end of the control</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ImpersonatingWrapper">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="WrapperTargetBase">
|
||||
@@ -1356,6 +1289,7 @@
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="useOneWayContract" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
|
||||
@@ -1376,6 +1310,11 @@
|
||||
<xs:documentation>Name of the endpoint configuration in WCF configuration file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useOneWayContract" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="clientId" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Client ID.</xs:documentation>
|
||||
@@ -1402,7 +1341,7 @@
|
||||
</xs:choice>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
|
||||
<xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
@@ -1589,32 +1528,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MessageBox">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="caption" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="caption" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Message box title.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MSMQ">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
@@ -2108,165 +2021,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RichTextBox">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="autoScroll" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="height" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="maxLines" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="showMinimized" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="toolWindow" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="width" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="row-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxRowColoringRule" />
|
||||
<xs:element name="useDefaultRowColoringRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="word-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxWordColoringRule" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="autoScroll" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether scroll bar will be moved automatically to show most recent log entries.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="controlName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of RichTextBox to which Nlog will write.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="formName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="height" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Initial height of the form with rich text box.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxLines" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of lines the rich text box will store (or 0 to disable this feature).</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="showMinimized" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the created form will be initially minimized.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="toolWindow" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the created window will be a tool window.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="width" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Initial width of the form with rich text box.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useDefaultRowColoringRules" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use default coloring rules.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="System.Drawing.FontStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Regular" />
|
||||
<xs:enumeration value="Bold" />
|
||||
<xs:enumeration value="Italic" />
|
||||
<xs:enumeration value="Underline" />
|
||||
<xs:enumeration value="Strikeout" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="NLog.Targets.RichTextBoxRowColoringRule">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
|
||||
<xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="condition" type="Condition">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Condition that must be met in order to set the specified font color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="backgroundColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Background color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fontColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="style" type="System.Drawing.FontStyle">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font style of matched text.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLog.Targets.RichTextBoxWordColoringRule">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="ignoreCase" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="regex" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="text" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="wholeWords" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to match whole words only.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="backgroundColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fontColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="style" type="System.Drawing.FontStyle">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RoundRobinGroup">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="CompoundTargetBase">
|
||||
@@ -2320,6 +2074,7 @@
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="includeBOM" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
@@ -2332,6 +2087,11 @@
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="includeBOM" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Should we include the BOM (Byte-order-mark) for UTF? Influences the property. This will only work for UTF-8.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Encoding.</xs:documentation>
|
||||
@@ -2339,12 +2099,12 @@
|
||||
</xs:attribute>
|
||||
<xs:attribute name="methodName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Web service method name.</xs:documentation>
|
||||
<xs:documentation>Web service method name. Only used with Soap.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="namespace" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Web service namespace.</xs:documentation>
|
||||
<xs:documentation>Web service namespace. Only used with Soap.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
|
||||
@@ -2459,6 +2219,31 @@
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="JsonLayout">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Layout">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="attribute" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.JsonAttribute" />
|
||||
</xs:choice>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLog.Layouts.JsonAttribute">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout that will be rendered as the attribute's value.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the attribute.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="LayoutWithHeaderAndFooter">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Layout">
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<WebPublishMethod>Package</WebPublishMethod>
|
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
|
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform>
|
||||
<SiteUrlToLaunchAfterPublish />
|
||||
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
|
||||
<ExcludeApp_Data>False</ExcludeApp_Data>
|
||||
<DesktopBuildPackageLocation>C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\ReleaseClienti\DataUploader.zip</DesktopBuildPackageLocation>
|
||||
<PackageAsSingleFile>true</PackageAsSingleFile>
|
||||
<DeployIisAppPath>Default Web Site/DataUploader</DeployIisAppPath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
|
||||
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<_PublishTargetUrl>C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\ReleaseClienti</_PublishTargetUrl>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<File Include="bin/DataUploader.dll">
|
||||
<publishTime>06/15/2015 12:08:18</publishTime>
|
||||
</File>
|
||||
<File Include="bin/NLog.config">
|
||||
<publishTime>06/15/2015 12:03:55</publishTime>
|
||||
</File>
|
||||
<File Include="bin/NLog.dll">
|
||||
<publishTime>06/15/2015 10:39:48</publishTime>
|
||||
</File>
|
||||
<File Include="bin/NLog.Web.dll">
|
||||
<publishTime>06/15/2015 10:39:49</publishTime>
|
||||
</File>
|
||||
<File Include="Default.aspx">
|
||||
<publishTime>06/15/2015 11:25:20</publishTime>
|
||||
</File>
|
||||
<File Include="DemoPage.aspx">
|
||||
<publishTime>05/25/2015 12:10:22</publishTime>
|
||||
</File>
|
||||
<File Include="favicon.ico">
|
||||
<publishTime>06/15/2015 12:06:07</publishTime>
|
||||
</File>
|
||||
<File Include="FullSync.aspx">
|
||||
<publishTime>05/25/2015 10:29:04</publishTime>
|
||||
</File>
|
||||
<File Include="images/LogoSteamware.png">
|
||||
<publishTime>06/15/2015 11:23:06</publishTime>
|
||||
</File>
|
||||
<File Include="logs/PlaceHolder.file">
|
||||
<publishTime>06/15/2015 12:04:56</publishTime>
|
||||
</File>
|
||||
<File Include="packages.config">
|
||||
<publishTime>06/15/2015 10:39:50</publishTime>
|
||||
</File>
|
||||
<File Include="SyncDoc.aspx">
|
||||
<publishTime>06/15/2015 12:00:13</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>06/15/2015 12:08:18</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -10,13 +10,13 @@
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<h1>SyncDoc</h1>
|
||||
Modalità chiamata: è SEMPRE necessario nell'URL il numero del documento e l'anno! ?DOC=OC0001616&Anno=2015
|
||||
<%--Modalità chiamata: è SEMPRE necessario nell'URL il numero del documento e l'anno! ?DOC=OC0001616&Anno=2015
|
||||
<ul>
|
||||
<li>Senza parametri: effettua tutte le chiamate remote</li>
|
||||
<li>Con aggiunto il parametro "?DemoMode=true" nell'url --> NON viene chiamata (per ogni record) la pagina remota ma viene mostrato l'elenco delle chiamate che SI SAREBBERO EFFETTUATE</li>
|
||||
</ul>
|
||||
<hr />
|
||||
<h2>OUTPUT</h2>
|
||||
<h2>OUTPUT</h2>--%>
|
||||
<asp:Label runat="server" ID="lblOut" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using NLog;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
@@ -11,8 +12,12 @@ namespace DataUploader
|
||||
{
|
||||
public partial class SyncDoc : System.Web.UI.Page
|
||||
{
|
||||
private static Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
DateTime tick = DateTime.Now;
|
||||
// verifico se vado in modalità demo o meno...
|
||||
bool demoMode = false;
|
||||
string DOC = "";
|
||||
@@ -37,10 +42,11 @@ namespace DataUploader
|
||||
{
|
||||
lblOut.Text += string.Format("<br/>{0:000}) {1}", i + 1, urlsUpdate[i]);
|
||||
}
|
||||
logger.Info("Effettuato DEMO upload singolo documento: durata {0} msec", DateTime.Now.Subtract(tick).TotalMilliseconds);
|
||||
}
|
||||
else
|
||||
{
|
||||
lblOut.Text = string.Format("Normal MODE!<br/>DOC: {0}/{1}", DOC, Anno);
|
||||
lblOut.Text = string.Format("Dati caricati!<br/>DOC: {0}/{1}", DOC, Anno);
|
||||
var client = new WebClient();
|
||||
for (int i = 0; i < urlsUpdate.Length; i++)
|
||||
{
|
||||
@@ -51,6 +57,7 @@ namespace DataUploader
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
logger.Info("Effettuato upload singolo documento: durata {0} msec", DateTime.Now.Subtract(tick).TotalMilliseconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+25
-7
@@ -1,20 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--parametri base-->
|
||||
<add key="maxDocsToUpload" value="50" />
|
||||
<add key="remoteDocUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Document" />
|
||||
<add key="remoteCliUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Client" />
|
||||
<add key="queryFormatDB2" value="true"/>
|
||||
<!--connessione su un MDB di cui esiste un DSN-->
|
||||
<!--<add key="connString" value="Dsn=DB_Sigla32;Initial Catalog=TESDOCUM;" />-->
|
||||
|
||||
<!--funziona se esiste un DSN DITTA1-->
|
||||
<!--<add key="connString" value="Dsn=DITTA1;Uid=DB2;Pwd=ccL21x$1wow;Initial Catalog=TESDOCUM;" />-->
|
||||
|
||||
<!--funziona anche senza DSN esistente-->
|
||||
<add key="connString" value="Driver={IBM DB2 ODBC DRIVER};DataBase=DITTA1; HostName=RigaSRV02; Protocol=TCPIP;Port=50000;Uid=DB2;Pwd=ccL21x$1wow" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
</system.web>
|
||||
<runtime>
|
||||
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
|
||||
<dependentAssembly>
|
||||
|
||||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
|
||||
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
|
||||
</dependentAssembly>
|
||||
|
||||
</assemblyBinding>
|
||||
|
||||
</runtime>
|
||||
|
||||
</configuration>
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--parametri base-->
|
||||
<add key="maxDocsToUpload" value="50" />
|
||||
<add key="remoteDocUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Document" />
|
||||
<add key="remoteCliUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Client" />
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
<httpRuntime targetFramework="4.5" />
|
||||
</system.web>
|
||||
|
||||
</configuration>
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<targets>
|
||||
<!-- file target -->
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} [${uppercase:${level}}] ${message}" archiveEvery="Day" />
|
||||
|
||||
<!--viewer interattivo sentinel... http://sentinel.codeplex.com/-->
|
||||
<target xsi:type="NLogViewer" name="sentinel" address="udp://127.0.0.1:9999"/>
|
||||
<!--
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<!-- logging rules -->
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
<!--<logger name="*" minlevel="Trace" writeTo="sentinel" />-->
|
||||
</rules>
|
||||
</nlog>
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 273 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Config" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Schema" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Web" version="2.0.0.0" targetFramework="net45" />
|
||||
</packages>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<parameters>
|
||||
<setParameter name="IIS Web Application Name" value="Default Web Site/DataUploader" />
|
||||
</parameters>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<sitemanifest>
|
||||
<IisApp path="C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\DataUploader\obj\Release\Package\PackageTmp" managedRuntimeVersion="v4.0" />
|
||||
<setAcl path="C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\DataUploader\obj\Release\Package\PackageTmp" setAclResourceType="Directory" />
|
||||
<setAcl path="C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\DataUploader\obj\Release\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" />
|
||||
</sitemanifest>
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
===========================
|
||||
Prerequisites :
|
||||
--------------------------
|
||||
To deploy this Web package, Web Deploy (msdeploy.exe) must be installed on the computer that runs the .cmd file. For information about how to install Web Deploy, see the following URL:
|
||||
http://go.microsoft.com/?linkid=9278654
|
||||
This batch file requires that the package file "DataUploader.zip" and optionally provided the parameters file "DataUploader.SetParameters.xml" in the same folder or destination folder by environment variable.
|
||||
|
||||
===========================
|
||||
Usage:
|
||||
--------------------------
|
||||
DataUploader.deploy.cmd [/T|/Y] [/M:ComputerName] [/U:UserName] [/P:Password] [/G:UseTempAgent] [Additional msdeploy.exe flags ...]
|
||||
|
||||
|
||||
===========================
|
||||
Required Flags:
|
||||
--------------------------
|
||||
/T:
|
||||
Calls msdeploy.exe with the "-whatif" flag, which simulates deployment. This does not deploy the package. Instead, it creates a report of what will happen when you actually deploy the package.
|
||||
/Y:
|
||||
Calls msdeploy.exe without the "-whatif" flag, which deploys the package to the current machine or a destination server. Use /Y after you have verified the output that was generated by using the /T flag.
|
||||
|
||||
Note: Do not use /T and /Y in the same command.
|
||||
|
||||
===========================
|
||||
Optional Flags:
|
||||
--------------------------
|
||||
By Default, this script deploy on the current machine where this script is called with current user credential without agent service. Only pass the following value for advance scenario.
|
||||
|
||||
/M:<Destination server name or Service URL>
|
||||
If this flag is not specified, the package is installed on the computer where the command is run. The Service URL can be in the following format:
|
||||
https://<DestinationServer>:8172/MSDeploy.axd
|
||||
This format requires that IIS 7 be installed on the destination server and that IIS 7 Web Management Service(WMSvc) and Web Deployment Handler be set up.
|
||||
The service URL can also be in the following format:
|
||||
http://<DestinationServer>/MSDeployAgentService
|
||||
This format requires administrative rights on the destination server, and it requires that Web Deploy Remote Service (MsDepSvc) be installed on the destination server. IIS 7 does not have to be installed on the destination server.
|
||||
|
||||
/U:<UserName>
|
||||
/P:<Password>
|
||||
/G:<True | False>
|
||||
Specifies that the package is deployed by creating a temporary listener on the destination server. This requires no special installation on the destination server, but it requires you to be an administrator on that server. The default value of this flag is False.
|
||||
|
||||
/A:<Basic | NTLM>
|
||||
Specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic; otherwise, the default authentication type is NTLM.
|
||||
|
||||
/L
|
||||
Specifies that the package is deployed to local IISExpress user instance.
|
||||
|
||||
[Additional msdeploy.exe flags]
|
||||
The msdeploy.exe command supports additional flags. You can include any of these additional flags in the "$(ProjectName).Deploy.cmd" file, and the flags are passed through to msdeploy.exe during execution.
|
||||
Alternatively, you can specify additional flags by setting the "_MsDeployAdditionalFlags" environment variable. These settings are used by this batch file.
|
||||
Note: Any flag value that includes an equal sign (=) must be enclosed in double quotation marks, as shown in the following example, which will skip deploying the databases that are included in the package:
|
||||
"-skip:objectName=dbFullSql"
|
||||
|
||||
===========================
|
||||
Environment-Specific Settings:
|
||||
--------------------------
|
||||
|
||||
To customize application-specific settings for each deployment environment (for example, the IIS application name, the physical path, and any connection strings), edit the settings in the following file:
|
||||
"DataUploader.SetParameters.xml"
|
||||
===========================
|
||||
For more information on this deploy script visit: http://go.microsoft.com/fwlink/?LinkID=183544
|
||||
|
||||
@@ -0,0 +1,311 @@
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Copyright 2008 Microsoft Corporation. All rights reserved.
|
||||
@rem This is provided as sample to deploy the package using msdeploy.exe
|
||||
@rem For information about IIS Web Deploy technology,
|
||||
@rem please visit http://go.microsoft.com/?linkid=9278654
|
||||
@rem Note: This batch file assumes the package and setparametsrs.xml are in the same folder with this file
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@if %_echo%!==! echo off
|
||||
setlocal
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Please Make sure you have Web Deploy install in your machine.
|
||||
@rem Alternatively, you can explicit set the MsDeployPath to the location it is on your machine
|
||||
@rem set MSDeployPath="C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\"
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem if user does not set MsDeployPath environment variable, we will try to retrieve it from registry.
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if "%MSDeployPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set MSDeployPath=%%j
|
||||
))))))
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
|
||||
if not exist "%MSDeployPath%msdeploy.exe" (
|
||||
echo. msdeploy.exe is not found on this machine. Please install Web Deploy before execute the script.
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654
|
||||
goto :usage
|
||||
)
|
||||
|
||||
set RootPath=%~dp0
|
||||
if /I "%_DeploySetParametersFile%" == "" (
|
||||
set _DeploySetParametersFile=%RootPath%DataUploader.SetParameters.xml
|
||||
)
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
|
||||
set _ArgTestDeploy=
|
||||
set _ArgDestinationType=auto
|
||||
set _ArgComputerNameWithQuote=""
|
||||
set _ArgUserNameWithQuote=""
|
||||
set _ArgPasswordWithQuote=""
|
||||
set _ArgEncryptPasswordWithQuote=""
|
||||
set _ArgIncludeAclsWithQuote="False"
|
||||
set _ArgAuthTypeWithQuote=""
|
||||
set _ArgtempAgentWithQuote=""
|
||||
set _ArgLocalIIS=
|
||||
set _ArgLocalIISVersion=
|
||||
set _HaveArgMSDeployAdditonalFlags=
|
||||
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Simple Parse the arguments
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:NextArgument
|
||||
set _ArgCurrent=%~1
|
||||
set _ArgFlagFirst=%_ArgCurrent:~0,1%
|
||||
set _ArgFlag=%_ArgCurrent:~0,3%
|
||||
set _ArgValue=%_ArgCurrent:~3%
|
||||
|
||||
if /I "%_ArgFlag%" == "" goto :GetStarted
|
||||
if /I "%_ArgFlag%" == "~0,3" goto :GetStarted
|
||||
if /I "%_ArgFlag%" == "/T" set _ArgTestDeploy=true&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/Y" set _ArgTestDeploy=false&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/L" set _ArgLocalIIS=true&goto :ArgumentOK
|
||||
|
||||
if /I "%_ArgFlag%" == "/M:" set _ArgComputerNameWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/U:" set _ArgUserNameWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/P:" set _ArgPasswordWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/E:" set _ArgEncryptPasswordWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/I:" set _ArgIncludeAclsWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/A:" set _ArgAuthTypeWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
if /I "%_ArgFlag%" == "/G:" set _ArgtempAgentWithQuote="%_ArgValue%"&goto :ArgumentOK
|
||||
|
||||
@rem Any addition flags, pass through to the msdeploy
|
||||
if "%_HaveArgMSDeployAdditonalFlags%" == "" (
|
||||
goto :Assign_ArgMsDeployAdditionalFlags
|
||||
)
|
||||
set _ArgMsDeployAdditionalFlags=%_ArgMsDeployAdditionalFlags:&=^&% %_ArgCurrent:&=^&%
|
||||
set _HaveArgMSDeployAdditonalFlags=1
|
||||
goto :ArgumentOK
|
||||
|
||||
|
||||
:Assign_ArgMsDeployAdditionalFlags
|
||||
set _ArgMsDeployAdditionalFlags=%_ArgCurrent:&=^&%
|
||||
set _HaveArgMSDeployAdditonalFlags=1
|
||||
goto :ArgumentOK
|
||||
|
||||
:ArgumentOK
|
||||
shift
|
||||
goto :NextArgument
|
||||
|
||||
:GetStarted
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ------------------------------------------
|
||||
if /I "%_ArgTestDeploy%" == "" goto :usage
|
||||
if /I "%_ArgDestinationType%" == "" goto :usage
|
||||
|
||||
set _Destination=%_ArgDestinationType%
|
||||
if not %_ArgComputerNameWithQuote% == "" set _Destination=%_Destination%,computerName=%_ArgComputerNameWithQuote%
|
||||
if not %_ArgUserNameWithQuote% == "" set _Destination=%_Destination%,userName=%_ArgUserNameWithQuote%
|
||||
if not %_ArgPasswordWithQuote% == "" set _Destination=%_Destination%,password=%_ArgPasswordWithQuote%
|
||||
if not %_ArgAuthTypeWithQuote% == "" set _Destination=%_Destination%,authtype=%_ArgAuthTypeWithQuote%
|
||||
if not %_ArgEncryptPasswordWithQuote% == "" set _Destination=%_Destination%,encryptPassword=%_ArgEncryptPasswordWithQuote%
|
||||
if not %_ArgIncludeAclsWithQuote% == "" set _Destination=%_Destination%,includeAcls=%_ArgIncludeAclsWithQuote%
|
||||
if not %_ArgtempAgentWithQuote% == "" set _Destination=%_Destination%,tempAgent=%_ArgtempAgentWithQuote%
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem add -whatif when -T is specified
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if /I "%_ArgTestDeploy%" NEQ "false" (
|
||||
set _MsDeployAdditionalFlags=-whatif %_MsDeployAdditionalFlags%
|
||||
)
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem add flags for IISExpress when -L is specified
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
|
||||
if /I "%_ArgLocalIIS%" == "true" (
|
||||
call :SetIISExpressArguments
|
||||
)
|
||||
if /I "%_ArgLocalIIS%" == "true" (
|
||||
if not exist "%IISExpressPath%%IISExpressManifest%" (
|
||||
echo. IISExpress is not found on this machine. Please install through Web Platform Installer before execute the script.
|
||||
echo. or remove /L flag
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654
|
||||
goto :usage
|
||||
)
|
||||
if not exist "%IISExpressUserProfileDirectory%" (
|
||||
echo. %IISExpressUserProfileDirectory% is not exists
|
||||
echo. IISExpress is found on the machine. But the user have run IISExpress at least once.
|
||||
echo. Please visit http://go.microsoft.com/?linkid=9278654 for detail
|
||||
goto :usage
|
||||
)
|
||||
|
||||
set _MsDeployAdditionalFlags=%_MsDeployAdditionalFlags% -appHostConfigDir:%IISExpressUserProfileDirectory% -WebServerDir:"%IISExpressPath%" -webServerManifest:"%IISExpressManifest%"
|
||||
)
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem check the existence of the package file
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
if not exist "%RootPath%DataUploader.zip" (
|
||||
echo "%RootPath%DataUploader.zip" does not exist.
|
||||
echo This batch file relies on this deploy source file^(s^) in the same folder.
|
||||
goto :usage
|
||||
)
|
||||
|
||||
@rem ---------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Execute msdeploy.exe command line
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
call :CheckParameterFile
|
||||
echo. Start executing msdeploy.exe
|
||||
echo -------------------------------------------------------
|
||||
if not exist "%_DeploySetParametersFile%" (
|
||||
set _MSDeployCommandline="%MSDeployPath%msdeploy.exe" -source:package='%RootPath%DataUploader.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension
|
||||
) else (
|
||||
set _MSDeployCommandline="%MSDeployPath%msdeploy.exe" -source:package='%RootPath%DataUploader.zip' -dest:%_Destination% -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"%_DeploySetParametersFile%"
|
||||
)
|
||||
|
||||
if "%_HaveArgMSDeployAdditonalFlags%" == "" (
|
||||
goto :MSDeployWithOutArgMsDeployAdditionalFlag
|
||||
)
|
||||
goto :MSDeployWithArgMsDeployAdditionalFlag
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem MSDeployWithArgMsDeployAdditionalFlag
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:MSDeployWithArgMsDeployAdditionalFlag
|
||||
echo. %_MSDeployCommandline% %_MsDeployAdditionalFlags% %_ArgMsDeployAdditionalFlags:&=^&%
|
||||
%_MSDeployCommandline% %_MsDeployAdditionalFlags% %_ArgMsDeployAdditionalFlags:&=^&%
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem MSDeployWithOutArgMsDeployAdditionalFlag
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:MSDeployWithOutArgMsDeployAdditionalFlag
|
||||
echo. %_MSDeployCommandline% %_MsDeployAdditionalFlags%
|
||||
%_MSDeployCommandline% %_MsDeployAdditionalFlags%
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Find and set IISExpress argument.
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:SetIISExpressArguments
|
||||
|
||||
if "%IISExpressPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IISExpress" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set IISExpressPath=%%j
|
||||
))))))
|
||||
|
||||
if "%IISExpressPath%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\IISExpress" /s ^| findstr -i "InstallPath"`) do (
|
||||
if /I "%%h" == "InstallPath" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
if "%%~dpj" == "%%j" (
|
||||
set IISExpressPath=%%j
|
||||
))))))
|
||||
|
||||
if "%PersonalDocumentFolder%" == "" (
|
||||
for /F "usebackq tokens=2*" %%i in (`reg query "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal`) do (
|
||||
set PersonalDocumentFolder=%%j
|
||||
))
|
||||
|
||||
if "%IISExpressManifest%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IISExpress" /s ^| findstr -i "Manifest"`) do (
|
||||
if /I "%%h" == "Manifest" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
set IISExpressManifest=%%j
|
||||
)))))
|
||||
|
||||
if "%IISExpressManifest%" == "" (
|
||||
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\IISExpress" /s ^| findstr -i "Manifest"`) do (
|
||||
if /I "%%h" == "Manifest" (
|
||||
if /I "%%i" == "REG_SZ" (
|
||||
if not "%%j" == "" (
|
||||
set IISExpressManifest=%%j
|
||||
)))))
|
||||
|
||||
set IISExpressUserProfileDirectory="%PersonalDocumentFolder%\IISExpress\config"
|
||||
|
||||
@rem ---------------------------------------------
|
||||
|
||||
@rem ---------------------------------------------
|
||||
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem CheckParameterFile -- check if the package's setparamters.xml exists or not
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:CheckParameterFile
|
||||
if exist "%_DeploySetParametersFile%" (
|
||||
echo SetParameters from:
|
||||
echo "%_DeploySetParametersFile%"
|
||||
echo You can change IIS Application Name, Physical path, connectionString
|
||||
echo or other deploy parameters in the above file.
|
||||
) else (
|
||||
echo SetParamterFiles does not exist in package location.
|
||||
echo Use package embedded defaultValue to deploy.
|
||||
)
|
||||
echo -------------------------------------------------------
|
||||
goto :eof
|
||||
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
@rem Usage
|
||||
@rem ---------------------------------------------------------------------------------
|
||||
:usage
|
||||
echo =========================================================
|
||||
if not exist "%RootPath%DataUploader.deploy-readme.txt" (
|
||||
echo Usage:%~nx0 [/T^|/Y] [/M:ComputerName] [/U:userName] [/P:password] [/G:tempAgent] [additional msdeploy flags ...]
|
||||
echo Required flags:
|
||||
echo /T Calls msdeploy.exe with the "-whatif" flag, which simulates deployment.
|
||||
echo /Y Calls msdeploy.exe without the "-whatif" flag, which deploys the package to the current machine or destination server
|
||||
echo Optional flags:
|
||||
echo. By Default, this script deploy to the current machine where this script is invoked which will use current user credential without tempAgent.
|
||||
echo. Only pass these arguments when in advance scenario.
|
||||
echo /M: Msdeploy destination name of remote computer or proxy-URL. Default is local.
|
||||
echo /U: Msdeploy destination user name.
|
||||
echo /P: Msdeploy destination password.
|
||||
echo /G: Msdeploy destination tempAgent. True or False. Default is false.
|
||||
echo /A: specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic
|
||||
otherwise, the default authentication type is NTLM.
|
||||
echo /L: Deploy to Local IISExpress User Instance.
|
||||
|
||||
echo.[additional msdeploy flags]: note: " is required for passing = through command line.
|
||||
echo "-skip:objectName=setAcl" "-skip:objectName=dbFullSql"
|
||||
echo.Alternative environment variable _MsDeployAdditionalFlags is also honored.
|
||||
echo.
|
||||
echo. Please make sure MSDeploy is installed in the box http://go.microsoft.com/?linkid=9278654
|
||||
echo.
|
||||
echo In addition, you can change IIS Application Name, Physical path,
|
||||
echo connectionString and other deploy parameters in the following file:
|
||||
echo "%_DeploySetParametersFile%"
|
||||
echo.
|
||||
echo For more information about this batch file, visit http://go.microsoft.com/fwlink/?LinkID=183544
|
||||
) else (
|
||||
start notepad "%RootPath%DataUploader.deploy-readme.txt"
|
||||
)
|
||||
echo =========================================================
|
||||
goto :eof
|
||||
Binary file not shown.
Binary file not shown.
+104
-319
@@ -126,6 +126,11 @@
|
||||
<xs:documentation>Ignore further rules if this one matches.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="enabled" type="xs:boolean" default="true">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Enable or disable logging rule. Disabled rules are ignored.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLogFilters">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
@@ -147,6 +152,15 @@
|
||||
<xs:enumeration value="Fatal" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="LineEndingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Default" />
|
||||
<xs:enumeration value="CRLF" />
|
||||
<xs:enumeration value="CR" />
|
||||
<xs:enumeration value="LF" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NLogLevelList">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:pattern value="(|Trace|Debug|Info|Warn|Error|Fatal)(,(Trace|Debug|Info|Warn|Error|Fatal))*" />
|
||||
@@ -226,58 +240,6 @@
|
||||
<xs:minLength value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="AspNetBufferingWrapper">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="WrapperTargetBase">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="bufferGrowLimit" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="growBufferAsNeeded" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferGrowLimit" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of log events that the buffer can keep.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Number of log events to be buffered.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="growBufferAsNeeded" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether buffer should grow as needed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AspNetTrace">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="AspResponse">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
@@ -540,6 +502,7 @@
|
||||
<xs:element name="useDefaultRowHighlightingRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="highlight-row" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleRowHighlightingRule" />
|
||||
<xs:element name="highlight-word" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.ConsoleWordHighlightingRule" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="errorStream" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
@@ -567,6 +530,11 @@
|
||||
<xs:documentation>Indicates whether to use default row highlighting rules.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The encoding for writing messages to the .</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="errorStream" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the error stream (stderr) should be used instead of the output stream (stdout).</xs:documentation>
|
||||
@@ -667,6 +635,7 @@
|
||||
<xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="error" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -693,6 +662,11 @@
|
||||
<xs:documentation>Indicates whether to send the log messages to the standard error instead of the standard output.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>The encoding for writing messages to the .</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
@@ -709,7 +683,6 @@
|
||||
<xs:element name="dbProvider" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="dbUserName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="keepConnection" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="useTransactions" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="installConnectionString" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="install-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
|
||||
<xs:element name="uninstall-command" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.DatabaseCommandInfo" />
|
||||
@@ -762,11 +735,6 @@
|
||||
<xs:documentation>Indicates whether to keep the database connection open between the log events.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useTransactions" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use database transactions. Some data providers require this.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="installConnectionString" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used.</xs:documentation>
|
||||
@@ -917,7 +885,8 @@
|
||||
<xs:element name="eventId" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="log" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="machineName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="source" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="source" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="entryType" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -949,11 +918,16 @@
|
||||
<xs:documentation>Name of the machine on which Event Log service is running.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="source" type="xs:string">
|
||||
<xs:attribute name="source" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Value to be used as the event Source.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="entryType" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Optional entrytype. When not set, or when not convertable to then determined by </xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
@@ -986,30 +960,32 @@
|
||||
<xs:element name="header" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="NLog.Targets.LineEndingMode" />
|
||||
<xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
|
||||
<xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
|
||||
<xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
|
||||
<xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
|
||||
<xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="enableArchiveFileCompression" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="forceManaged" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" />
|
||||
<xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="archiveDateFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="archiveOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
@@ -1036,11 +1012,16 @@
|
||||
<xs:documentation>File encoding.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="lineEnding" type="NLog.Targets.LineEndingMode">
|
||||
<xs:attribute name="lineEnding" type="LineEndingMode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Line ending mode.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxArchiveFiles" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Way file archives are numbered.</xs:documentation>
|
||||
@@ -1061,9 +1042,9 @@
|
||||
<xs:documentation>Size in bytes above which log files will be automatically archived.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxArchiveFiles" type="xs:integer">
|
||||
<xs:attribute name="enableArchiveFileCompression" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of archive files that should be kept.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to compress archive files into the zip archive format.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="forceManaged" type="xs:boolean">
|
||||
@@ -1081,11 +1062,6 @@
|
||||
<xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fileName" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the file to write to.</xs:documentation>
|
||||
@@ -1103,7 +1079,12 @@
|
||||
</xs:attribute>
|
||||
<xs:attribute name="createDirs" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to create directories if they don't exist.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to create directories if they do not exist.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="enableFileDelete" type="xs:boolean">
|
||||
@@ -1121,6 +1102,11 @@
|
||||
<xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxLogFilenames" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of log filenames that should be stored as existing.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="keepFileOpen" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation>
|
||||
@@ -1141,9 +1127,9 @@
|
||||
<xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:attribute name="autoFlush" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Log file buffer size in bytes.</xs:documentation>
|
||||
<xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="openFileCacheSize" type="xs:integer">
|
||||
@@ -1151,23 +1137,14 @@
|
||||
<xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="autoFlush" type="xs:boolean">
|
||||
<xs:attribute name="bufferSize" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
|
||||
<xs:documentation>Log file buffer size in bytes.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="NLog.Targets.LineEndingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Default" />
|
||||
<xs:enumeration value="CRLF" />
|
||||
<xs:enumeration value="CR" />
|
||||
<xs:enumeration value="LF" />
|
||||
<xs:enumeration value="None" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:simpleType name="NLog.Targets.ArchiveNumberingMode">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Sequence" />
|
||||
@@ -1226,50 +1203,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="FormControl">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="append" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="reverseOrder" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="append" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether log text should be appended to the text of the control instead of overwriting it.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="controlName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of control to which NLog will log write log text.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="formName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the Form on which the control is located.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="reverseOrder" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Whether new log entry are added to the start or the end of the control</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="ImpersonatingWrapper">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="WrapperTargetBase">
|
||||
@@ -1356,6 +1289,7 @@
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="endpointAddress" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="endpointConfigurationName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="useOneWayContract" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="clientId" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="includeEventProperties" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
|
||||
@@ -1376,6 +1310,11 @@
|
||||
<xs:documentation>Name of the endpoint configuration in WCF configuration file.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useOneWayContract" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply)</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="clientId" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Client ID.</xs:documentation>
|
||||
@@ -1402,7 +1341,7 @@
|
||||
</xs:choice>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout that should be use to calcuate the value for the parameter.</xs:documentation>
|
||||
<xs:documentation>Layout that should be use to calculate the value for the parameter.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
@@ -1589,32 +1528,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MessageBox">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="caption" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="caption" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Message box title.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="MSMQ">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
@@ -2108,165 +2021,6 @@
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RichTextBox">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="autoScroll" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="controlName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="formName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="height" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="maxLines" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="showMinimized" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="toolWindow" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="width" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
||||
<xs:element name="row-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxRowColoringRule" />
|
||||
<xs:element name="useDefaultRowColoringRules" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="word-coloring" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.RichTextBoxWordColoringRule" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout used to format log messages.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="autoScroll" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether scroll bar will be moved automatically to show most recent log entries.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="controlName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of RichTextBox to which Nlog will write.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="formName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="height" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Initial height of the form with rich text box.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="maxLines" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Maximum number of lines the rich text box will store (or 0 to disable this feature).</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="showMinimized" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the created form will be initially minimized.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="toolWindow" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether the created window will be a tool window.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="width" type="xs:integer">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Initial width of the form with rich text box.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="useDefaultRowColoringRules" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to use default coloring rules.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:simpleType name="System.Drawing.FontStyle">
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:enumeration value="Regular" />
|
||||
<xs:enumeration value="Bold" />
|
||||
<xs:enumeration value="Italic" />
|
||||
<xs:enumeration value="Underline" />
|
||||
<xs:enumeration value="Strikeout" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
<xs:complexType name="NLog.Targets.RichTextBoxRowColoringRule">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="condition" minOccurs="0" maxOccurs="1" type="Condition" />
|
||||
<xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="condition" type="Condition">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Condition that must be met in order to set the specified font color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="backgroundColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Background color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fontColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font color.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="style" type="System.Drawing.FontStyle">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font style of matched text.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLog.Targets.RichTextBoxWordColoringRule">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="ignoreCase" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="regex" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="text" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="wholeWords" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="backgroundColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="fontColor" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="style" minOccurs="0" maxOccurs="1" type="System.Drawing.FontStyle" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="ignoreCase" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to ignore case when comparing texts.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="regex" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Regular expression to be matched. You must specify either text or regex.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="text" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Text to be matched. You must specify either text or regex.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="wholeWords" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Indicates whether to match whole words only.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="backgroundColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="fontColor" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="style" type="System.Drawing.FontStyle">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="RoundRobinGroup">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="CompoundTargetBase">
|
||||
@@ -2320,6 +2074,7 @@
|
||||
<xs:extension base="Target">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="includeBOM" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
||||
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="NLog.Targets.MethodCallParameter" />
|
||||
<xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
<xs:element name="methodName" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
@@ -2332,6 +2087,11 @@
|
||||
<xs:documentation>Name of the target.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="includeBOM" type="xs:boolean">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Should we include the BOM (Byte-order-mark) for UTF? Influences the property. This will only work for UTF-8.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="encoding" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Encoding.</xs:documentation>
|
||||
@@ -2339,12 +2099,12 @@
|
||||
</xs:attribute>
|
||||
<xs:attribute name="methodName" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Web service method name.</xs:documentation>
|
||||
<xs:documentation>Web service method name. Only used with Soap.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="namespace" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Web service namespace.</xs:documentation>
|
||||
<xs:documentation>Web service namespace. Only used with Soap.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="protocol" type="NLog.Targets.WebServiceProtocol">
|
||||
@@ -2459,6 +2219,31 @@
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="JsonLayout">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Layout">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="attribute" minOccurs="0" maxOccurs="unbounded" type="NLog.Layouts.JsonAttribute" />
|
||||
</xs:choice>
|
||||
</xs:extension>
|
||||
</xs:complexContent>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="NLog.Layouts.JsonAttribute">
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="layout" minOccurs="0" maxOccurs="1" type="Layout" />
|
||||
<xs:element name="name" minOccurs="0" maxOccurs="1" type="xs:string" />
|
||||
</xs:choice>
|
||||
<xs:attribute name="layout" type="SimpleLayoutAttribute">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Layout that will be rendered as the attribute's value.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
<xs:attribute name="name" type="xs:string">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Name of the attribute.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:attribute>
|
||||
</xs:complexType>
|
||||
<xs:complexType name="LayoutWithHeaderAndFooter">
|
||||
<xs:complexContent>
|
||||
<xs:extension base="Layout">
|
||||
|
||||
Vendored
-4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* jQuery JavaScript Library v2.1.3
|
||||
* jQuery JavaScript Library v2.1.4
|
||||
* http://jquery.com/
|
||||
*
|
||||
* Includes Sizzle.js
|
||||
@@ -9,7 +9,7 @@
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: 2014-12-18T15:11Z
|
||||
* Date: 2015-04-28T16:01Z
|
||||
*/
|
||||
|
||||
(function( global, factory ) {
|
||||
@@ -67,7 +67,7 @@ var
|
||||
// Use the correct document accordingly with window argument (sandbox)
|
||||
document = window.document,
|
||||
|
||||
version = "2.1.3",
|
||||
version = "2.1.4",
|
||||
|
||||
// Define a local copy of jQuery
|
||||
jQuery = function( selector, context ) {
|
||||
@@ -531,7 +531,12 @@ jQuery.each("Boolean Number String Function Array Date RegExp Object Error".spli
|
||||
});
|
||||
|
||||
function isArraylike( obj ) {
|
||||
var length = obj.length,
|
||||
|
||||
// Support: iOS 8.2 (not reproducible in simulator)
|
||||
// `in` check used to prevent JIT error (gh-2145)
|
||||
// hasOwn isn't used here due to false negatives
|
||||
// regarding Nodelist length in IE
|
||||
var length = "length" in obj && obj.length,
|
||||
type = jQuery.type( obj );
|
||||
|
||||
if ( type === "function" || jQuery.isWindow( obj ) ) {
|
||||
Vendored
+5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+13
-1
@@ -140,7 +140,19 @@
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930" newVersion="1.6.5135.21930" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
|
||||
+22
-21
@@ -20,7 +20,6 @@
|
||||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<TargetFrameworkProfile />
|
||||
<WebGreaseLibPath>..\packages\WebGrease.1.5.2\lib</WebGreaseLibPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -42,8 +41,8 @@
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Antlr3.Runtime, Version=3.4.1.9004, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath>
|
||||
<Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="DayPilot, Version=5.0.302.0, Culture=neutral, PublicKeyToken=ce5d34538e20ef65, processorArchitecture=MSIL">
|
||||
@@ -66,16 +65,16 @@
|
||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.5.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=3.2.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.3.2.0.0\lib\net35\NLog.dll</HintPath>
|
||||
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.4.0.0\lib\net45\NLog.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="NLog.Web, Version=1.0.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.Web.1.0.8.0\lib\net35\NLog.Web.dll</HintPath>
|
||||
<Reference Include="NLog.Web, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.Web.2.0.0.0\lib\net35\NLog.Web.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
@@ -97,8 +96,8 @@
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
<Reference Include="System.Web.Mobile" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="WebGrease, Version=1.5.2.14234, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath>
|
||||
<Reference Include="WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
@@ -329,6 +328,8 @@
|
||||
<DependentUpon>WebSCR.less</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Default.aspx" />
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="images\LogoSteamware.png" />
|
||||
<Content Include="Interventi.aspx" />
|
||||
<Content Include="Menu.aspx" />
|
||||
<Content Include="Pianificazione.aspx" />
|
||||
@@ -344,6 +345,15 @@
|
||||
<Content Include="Bundle.config" />
|
||||
<Content Include="Content\WebSCR.less" />
|
||||
<Content Include="Content\Style.less" />
|
||||
<Content Include="NLog.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="NLog.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="Scripts\jquery-2.1.4.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-2.1.4.js" />
|
||||
<Content Include="Scripts\jquery-2.1.4.min.js" />
|
||||
<Content Include="Scripts\jSteamware.js" />
|
||||
<Content Include="Setup.aspx" />
|
||||
<Content Include="Squadra.aspx" />
|
||||
@@ -380,15 +390,13 @@
|
||||
<Content Include="WebUserControls\mod_squadre.ascx" />
|
||||
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
|
||||
<None Include="Properties\PublishProfiles\WinLab-Rigamonti.pubxml" />
|
||||
<None Include="Scripts\jquery-2.1.3.intellisense.js" />
|
||||
<Content Include="Scripts\jquery-2.1.3.js" />
|
||||
<Content Include="Scripts\jquery-2.1.3.min.js" />
|
||||
<Content Include="Scripts\jquery.mobile-1.4.5.js" />
|
||||
<Content Include="Scripts\jquery.mobile-1.4.5.min.js" />
|
||||
<Content Include="ViewSwitcher.ascx" />
|
||||
<Content Include="Web.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Scripts\jquery-2.1.4.min.map" />
|
||||
<None Include="Web.WinLab.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -704,18 +712,11 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="packages.config" />
|
||||
<Content Include="NLog.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="fonts\fontawesome-webfont.woff" />
|
||||
<Content Include="fonts\fontawesome-webfont.ttf" />
|
||||
<Content Include="fonts\fontawesome-webfont.eot" />
|
||||
<Content Include="fonts\FontAwesome.otf" />
|
||||
<None Include="NLog.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<Content Include="Scripts\jquery.mobile-1.4.5.min.map" />
|
||||
<Content Include="Scripts\jquery-2.1.3.min.map" />
|
||||
<Content Include="Site.Mobile.Master" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+4804
-571
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+700
-136
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -4572,5 +4572,24 @@
|
||||
<param name="Passphrase"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SteamWare.percentuali">
|
||||
<summary>
|
||||
classe gestione valori percentuali per semplificare edit utente (moltiplicati x 100 appunto)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.percentuali.perc2num(System.String)">
|
||||
<summary>
|
||||
converte da percentuale a numero (es 5,3% --> 0.053)
|
||||
</summary>
|
||||
<param name="originalVal"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.percentuali.num2perc(System.String)">
|
||||
<summary>
|
||||
converte da numero a percentuale (es 0.053 --> 5,3%)
|
||||
</summary>
|
||||
<param name="originalVal"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 273 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
|
||||
<package id="Antlr" version="3.5.0.2" targetFramework="net45" />
|
||||
<package id="DayPilot" version="5.0.302" targetFramework="net45" />
|
||||
<package id="elmah" version="1.2.2" targetFramework="net45" />
|
||||
<package id="elmah.corelibrary" version="1.2.2" targetFramework="net45" />
|
||||
<package id="FontAwesome" version="4.2.0" targetFramework="net45" />
|
||||
<package id="jQuery" version="2.1.3" targetFramework="net45" />
|
||||
<package id="jQuery" version="2.1.4" targetFramework="net45" />
|
||||
<package id="jquery.mobile" version="1.4.5" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls" version="1.0.2" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.FriendlyUrls.Core" version="1.0.2" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" />
|
||||
<package id="Microsoft.AspNet.Web.Optimization.WebForms" version="1.1.3" targetFramework="net45" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
|
||||
<package id="Newtonsoft.Json" version="5.0.4" targetFramework="net45" />
|
||||
<package id="NLog" version="3.2.0.0" targetFramework="net35" requireReinstallation="True" />
|
||||
<package id="NLog.Config" version="3.2.0.0" targetFramework="net35" />
|
||||
<package id="NLog.Schema" version="3.2.0.0" targetFramework="net35" />
|
||||
<package id="NLog.Web" version="1.0.8.0" targetFramework="net35" />
|
||||
<package id="WebGrease" version="1.5.2" targetFramework="net45" />
|
||||
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
|
||||
<package id="NLog" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Config" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Schema" version="4.0.0" targetFramework="net45" />
|
||||
<package id="NLog.Web" version="2.0.0.0" targetFramework="net45" />
|
||||
<package id="WebGrease" version="1.6.0" targetFramework="net45" />
|
||||
</packages>
|
||||
Binary file not shown.
@@ -4572,5 +4572,24 @@
|
||||
<param name="Passphrase"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SteamWare.percentuali">
|
||||
<summary>
|
||||
classe gestione valori percentuali per semplificare edit utente (moltiplicati x 100 appunto)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.percentuali.perc2num(System.String)">
|
||||
<summary>
|
||||
converte da percentuale a numero (es 5,3% --> 0.053)
|
||||
</summary>
|
||||
<param name="originalVal"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.percentuali.num2perc(System.String)">
|
||||
<summary>
|
||||
converte da numero a percentuale (es 0.053 --> 5,3%)
|
||||
</summary>
|
||||
<param name="originalVal"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
@@ -3,8 +3,6 @@
|
||||
<configSections>
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
-15307
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
-15247
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
BIN
Binary file not shown.
-10504
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
-10504
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
+4649
-561
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
+4648
-594
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
+4774
-511
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
+2865
-226
File diff suppressed because it is too large
Load Diff
Vendored
BIN
Binary file not shown.
+2865
-226
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
-25
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
|
||||
<!--
|
||||
See https://github.com/nlog/nlog/wiki/Configuration-file
|
||||
for information on customizing logging rules and outputs.
|
||||
-->
|
||||
<targets>
|
||||
<!-- add your targets here -->
|
||||
|
||||
<!--
|
||||
<target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
|
||||
layout="${longdate} ${uppercase:${level}} ${message}" />
|
||||
-->
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<!-- add your logging rules here -->
|
||||
|
||||
<!--
|
||||
<logger name="*" minlevel="Trace" writeTo="f" />
|
||||
-->
|
||||
</rules>
|
||||
</nlog>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user