Update Version 2.3

This commit is contained in:
2021-05-25 21:01:12 +02:00
parent 1cc7ed8893
commit 97ef665fd1
183 changed files with 86758 additions and 197 deletions

93
BeAUserSync/AD/SHUAD.cs Normal file
View File

@@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.DirectoryServices;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeAUserSync.AD
{
class SHUAD
{
DirectoryEntry di;
string ldapServer = "";
string userName = "";
string password = "";
string AuthType = "";
string filter = "";
public string ErrorMessage = "";
public bool Connect_to_Server()
{
ldapServer = Properties.Settings.Default.LDAPServer;
userName = Properties.Settings.Default.UserName;
password = Properties.Settings.Default.Password;
AuthType = Properties.Settings.Default.AutheticationType;
Console.WriteLine(ldapServer);
Console.WriteLine(userName);
try
{
AuthenticationTypes authenticationType = (AuthenticationTypes)Enum.Parse(typeof(AuthenticationTypes), this.AuthType);
//di = new DirectoryEntry(ldapServer, userName, password,atype);
if (userName !="")
{
if (password == "")
{
Console.Write("Passwort für User:" + userName);
password = Console.ReadLine();
};
//di = new DirectoryEntry(ldapServer, userName, password,atype);
di = new DirectoryEntry(ldapServer, userName, password, authenticationType);
return true;
}
else
{
di = new DirectoryEntry(ldapServer);
return false;
}
}
catch (Exception ex)
{
ErrorMessage = ex.Message;
return false;
}
}
public string get_mail_from_user(string userid)
{
try
{
string email = "";
DirectorySearcher searcher = new DirectorySearcher(di);
searcher.Filter = "(" + Properties.Settings.Default.LoginAttribute + "=" + userid + ")";
//searcher.Filter = "(uid="+userid+")";
//searcher.Filter = "(SAMAccountName = " + userid + ")";
searcher.PropertiesToLoad.Add(Properties.Settings.Default.emailattribute);
SearchResult rc = searcher.FindOne();
try
{
email = rc.Properties[Properties.Settings.Default.emailattribute][0].ToString();
return email;
}
catch (Exception ex)
{
//Console.WriteLine(ex.Message);
return "";
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return "";
}
}
}
}

51
BeAUserSync/App.config Normal file
View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="BeAUserSync.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<appSettings>
<add key="LDAPPassword" value="" />
<add key="LDAPPath" value="LDAP://ldap.forumsys.com:389" />
<add key="LDAPUser" value="" />
<add key="LDAPDomain" value="" />
</appSettings>
<userSettings>
<BeAUserSync.Properties.Settings>
<setting name="UserName" serializeAs="String">
<value>cn=read-only-admin,dc=example,dc=com</value>
</setting>
<setting name="Password" serializeAs="String">
<value>password</value>
</setting>
<setting name="AutheticationType" serializeAs="String">
<value>16</value>
</setting>
<setting name="BaseDN" serializeAs="String">
<value>OU=Prd_Personal, OU=Prd_User,OU=Prd_Org, OU=Prd, DC=tgcorp,DC=ch</value>
</setting>
<setting name="Filter" serializeAs="String">
<value>(objectClass=person)</value>
</setting>
<setting name="emailattribute" serializeAs="String">
<value>mail</value>
</setting>
<setting name="LDAPServer" serializeAs="String">
<value>LDAP://ldap.forumsys.com:389/dc=example,dc=com</value>
</setting>
<setting name="LoginAttribute" serializeAs="String">
<value>uid</value>
</setting>
<setting name="connectionstring" serializeAs="String">
<value>data source=shu00;initial catalog=bea_prod;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29</value>
</setting>
<setting name="Dataselect" serializeAs="String">
<value>2</value>
</setting>
</BeAUserSync.Properties.Settings>
</userSettings>
</configuration>

View File

@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D1E23AD8-1FC2-4130-B950-B639D8474292}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BeAUserSync</RootNamespace>
<AssemblyName>BeAUserSync</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Extensions.Logging.Abstractions.2.2.0\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.DirectoryServices.AccountManagement" />
<Reference Include="System.DirectoryServices.Protocols" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="AD\SHUAD.cs" />
<Compile Include="db.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>NoAD</StartArguments>
</PropertyGroup>
</Project>

164
BeAUserSync/Program.cs Normal file
View File

@@ -0,0 +1,164 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using Microsoft.VisualBasic;
using System.DirectoryServices;
using BeAUserSync.AD;
using System.DirectoryServices.Protocols;
using System.Data;
// Parameter
// ADTest - Test von AD-Zugriffen
// NoAD - Update E-Mail-Adresse mit TGNummer+@tkb.ch
// Normal - Update - E-Mail-Adresse über AD
namespace BeAUserSync
{
class Program
{
private const string CONFIG_ITEM_DIRECTORY = @"ConfigurationItems\";
private const string AD_CONFIGURATION_ITEM_NAME = "ActiveDirectory";
private static db database = new db();
private static db adlog = new db();
static string dataselect = "";
string s = "";
static void Main(string[] args)
{
dataselect = Properties.Settings.Default.Dataselect;
if (dataselect != "")
{
dataselect = "Select top " + dataselect + " Personalnr, TGNummer, EMail from personal where aktiv=1 and isnull(tgnummer,'')<>''";
}
else
{
dataselect = "Select Personalnr, TGNummer, EMail from personal where aktiv = 1 and isnull(tgnummer,'')<>''";
}
Console.WriteLine(dataselect);
string arg = "";
if (args.Length != 0)
{
arg = args[0];
if (arg != "ADTest" && arg != "NoAD" && arg != "Normal")
{
Console.WriteLine("Fehlerhafte Argumente - möglich sind:");
Console.WriteLine("ADTest - Kommandozeilen-Test für AD-Zugriffe");
Console.WriteLine("NoAD - DB-Update ohne AD - Email aus TGNummer und @tkb.ch");
Console.WriteLine("Normal - E-Mail-Bezug aus AD");
string res = "";
res = Console.ReadLine();
return;
}
switch (arg)
{
case "ADTest":
SHUAD sad = new SHUAD();
if (sad.Connect_to_Server() == true)
{
Console.WriteLine("Connection OK");
}
else
{
Console.WriteLine("Connection NOK");
Console.WriteLine(sad.ErrorMessage);
}
string user = "";
Console.WriteLine("UserID:");
user = Console.ReadLine();
while (user != "")
{
try
{
Console.WriteLine(sad.get_mail_from_user(user));
Console.WriteLine("");
Console.WriteLine("UserID:");
user = Console.ReadLine();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
user = "";
user = Console.ReadLine();
}
}
break;
case "NoAD":
adlog.Get_Tabeldata_for_Update("Select * from adlog where id=-1");
Log_Insert("Start Abgleich");
database.Get_Tabeldata_for_Update(dataselect);
foreach (DataRow dr in database.dsdaten.Tables[0].Rows)
{
string email = "";
email = dr["tgnummer"].ToString() + "@tkb.ch";
if (email != "" && email != dr["email"].ToString())
{
dr["email"] = email;
Log_Insert(dr["tgnummer"].ToString() + " - " + email);
}
}
database.Update_Tabeldata();
Log_Insert("Ende Abgleich");
adlog.Update_Tabeldata();
break;
default:
SHUAD ad = new SHUAD();
if (ad.Connect_to_Server() != true)
{
Console.WriteLine("Connection NOK");
return;
}
adlog.Get_Tabeldata_for_Update("Select * from adlog where id=-1");
Log_Insert("Start Abgleich");
database.Get_Tabeldata_for_Update(dataselect);
foreach (DataRow dr in database.dsdaten.Tables[0].Rows)
{
string email = "";
Console.WriteLine(dr["tgnummer"]);
email = ad.get_mail_from_user(dr["tgnummer"].ToString());
if (email != "" && email != dr["email"].ToString())
{
dr["email"] = email;
Log_Insert(dr["tgnummer"].ToString() + " - " + email);
}
else
{
if (email == "")
{
Log_Insert(dr["tgnummer"].ToString() + " - kein AD-Eintrag");
}
}
}
database.Update_Tabeldata();
Log_Insert("Ende Abgleich");
adlog.Update_Tabeldata();
break;
}
}
}
static void Log_Insert(string logentry)
{
DataRow dr = adlog.dsdaten.Tables[0].NewRow();
dr["Eintrag"] = logentry;
dr["Zeit"] = DateTime.Now;
adlog.dsdaten.Tables[0].Rows.Add(dr);
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("BeAUserSync")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BeAUserSync")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("d1e23ad8-1fc2-4130-b950-b639d8474292")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,147 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace BeAUserSync.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("cn=read-only-admin,dc=example,dc=com")]
public string UserName {
get {
return ((string)(this["UserName"]));
}
set {
this["UserName"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("password")]
public string Password {
get {
return ((string)(this["Password"]));
}
set {
this["Password"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("16")]
public string AutheticationType {
get {
return ((string)(this["AutheticationType"]));
}
set {
this["AutheticationType"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("OU=Prd_Personal, OU=Prd_User,OU=Prd_Org, OU=Prd, DC=tgcorp,DC=ch")]
public string BaseDN {
get {
return ((string)(this["BaseDN"]));
}
set {
this["BaseDN"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("(objectClass=person)")]
public string Filter {
get {
return ((string)(this["Filter"]));
}
set {
this["Filter"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("mail")]
public string emailattribute {
get {
return ((string)(this["emailattribute"]));
}
set {
this["emailattribute"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("LDAP://ldap.forumsys.com:389/dc=example,dc=com")]
public string LDAPServer {
get {
return ((string)(this["LDAPServer"]));
}
set {
this["LDAPServer"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("uid")]
public string LoginAttribute {
get {
return ((string)(this["LoginAttribute"]));
}
set {
this["LoginAttribute"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("data source=shu00;initial catalog=bea_prod;integrated security=SSPI;persist secur" +
"ity info=false;workstation id=;packet size=4096;user id=sa;password=*shu29")]
public string connectionstring {
get {
return ((string)(this["connectionstring"]));
}
set {
this["connectionstring"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("2")]
public string Dataselect {
get {
return ((string)(this["Dataselect"]));
}
set {
this["Dataselect"] = value;
}
}
}
}

View File

@@ -0,0 +1,36 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="BeAUserSync.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="UserName" Type="System.String" Scope="User">
<Value Profile="(Default)">cn=read-only-admin,dc=example,dc=com</Value>
</Setting>
<Setting Name="Password" Type="System.String" Scope="User">
<Value Profile="(Default)">password</Value>
</Setting>
<Setting Name="AutheticationType" Type="System.String" Scope="User">
<Value Profile="(Default)">16</Value>
</Setting>
<Setting Name="BaseDN" Type="System.String" Scope="User">
<Value Profile="(Default)">OU=Prd_Personal, OU=Prd_User,OU=Prd_Org, OU=Prd, DC=tgcorp,DC=ch</Value>
</Setting>
<Setting Name="Filter" Type="System.String" Scope="User">
<Value Profile="(Default)">(objectClass=person)</Value>
</Setting>
<Setting Name="emailattribute" Type="System.String" Scope="User">
<Value Profile="(Default)">mail</Value>
</Setting>
<Setting Name="LDAPServer" Type="System.String" Scope="User">
<Value Profile="(Default)">LDAP://ldap.forumsys.com:389/dc=example,dc=com</Value>
</Setting>
<Setting Name="LoginAttribute" Type="System.String" Scope="User">
<Value Profile="(Default)">uid</Value>
</Setting>
<Setting Name="connectionstring" Type="System.String" Scope="User">
<Value Profile="(Default)">data source=shu00;initial catalog=bea_prod;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29</Value>
</Setting>
<Setting Name="Dataselect" Type="System.String" Scope="User">
<Value Profile="(Default)">2</Value>
</Setting>
</Settings>
</SettingsFile>

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="BeAUserSync.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
<appSettings>
<add key="LDAPPassword" value="" />
<add key="LDAPPath" value="LDAP://ldap.forumsys.com:389" />
<add key="LDAPUser" value="" />
<add key="LDAPDomain" value="" />
</appSettings>
<userSettings>
<BeAUserSync.Properties.Settings>
<setting name="UserName" serializeAs="String">
<value>cn=read-only-admin,dc=example,dc=com</value>
</setting>
<setting name="Password" serializeAs="String">
<value>password</value>
</setting>
<setting name="AutheticationType" serializeAs="String">
<value>16</value>
</setting>
<setting name="BaseDN" serializeAs="String">
<value>OU=Prd_Personal, OU=Prd_User,OU=Prd_Org, OU=Prd, DC=tgcorp,DC=ch</value>
</setting>
<setting name="Filter" serializeAs="String">
<value>(objectClass=person)</value>
</setting>
<setting name="emailattribute" serializeAs="String">
<value>mail</value>
</setting>
<setting name="LDAPServer" serializeAs="String">
<value>LDAP://ldap.forumsys.com:389/dc=example,dc=com</value>
</setting>
<setting name="LoginAttribute" serializeAs="String">
<value>uid</value>
</setting>
<setting name="connectionstring" serializeAs="String">
<value>data source=shu00;initial catalog=bea_prod;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29</value>
</setting>
<setting name="Dataselect" serializeAs="String">
<value>2</value>
</setting>
</BeAUserSync.Properties.Settings>
</userSettings>
</configuration>

Binary file not shown.

View File

@@ -0,0 +1,708 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Microsoft.Extensions.Logging.Abstractions</name>
</assembly>
<members>
<member name="T:Microsoft.Extensions.Logging.IExternalScopeProvider">
<summary>
Represents a storage of common scope data.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.IExternalScopeProvider.ForEachScope``1(System.Action{System.Object,``0},``0)">
<summary>
Executes callback for each currently active scope objects in order of creation.
All callbacks are guaranteed to be called inline from this method.
</summary>
<param name="callback">The callback to be executed for every scope object</param>
<param name="state">The state object to be passed into the callback</param>
<typeparam name="TState"></typeparam>
</member>
<member name="M:Microsoft.Extensions.Logging.IExternalScopeProvider.Push(System.Object)">
<summary>
Adds scope object to the list
</summary>
<param name="state">The scope object</param>
<returns>The <see cref="T:System.IDisposable"/> token that removes scope on dispose.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.ILogger">
<summary>
Represents a type used to perform logging.
</summary>
<remarks>Aggregates most logging patterns to a single method.</remarks>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})">
<summary>
Writes a log entry.
</summary>
<param name="logLevel">Entry will be written on this level.</param>
<param name="eventId">Id of the event.</param>
<param name="state">The entry to be written. Can be also an object.</param>
<param name="exception">The exception related to this entry.</param>
<param name="formatter">Function to create a <c>string</c> message of the <paramref name="state"/> and <paramref name="exception"/>.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)">
<summary>
Checks if the given <paramref name="logLevel"/> is enabled.
</summary>
<param name="logLevel">level to be checked.</param>
<returns><c>true</c> if enabled.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.ILogger.BeginScope``1(``0)">
<summary>
Begins a logical operation scope.
</summary>
<param name="state">The identifier for the scope.</param>
<returns>An IDisposable that ends the logical operation scope on dispose.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.ILoggerFactory">
<summary>
Represents a type used to configure the logging system and create instances of <see cref="T:Microsoft.Extensions.Logging.ILogger"/> from
the registered <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/>s.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerFactory.CreateLogger(System.String)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance.
</summary>
<param name="categoryName">The category name for messages produced by the logger.</param>
<returns>The <see cref="T:Microsoft.Extensions.Logging.ILogger"/>.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerFactory.AddProvider(Microsoft.Extensions.Logging.ILoggerProvider)">
<summary>
Adds an <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/> to the logging system.
</summary>
<param name="provider">The <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/>.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.ILogger`1">
<summary>
A generic interface for logging where the category name is derived from the specified
<typeparamref name="TCategoryName"/> type name.
Generally used to enable activation of a named <see cref="T:Microsoft.Extensions.Logging.ILogger"/> from dependency injection.
</summary>
<typeparam name="TCategoryName">The type who's name is used for the logger category name.</typeparam>
</member>
<member name="T:Microsoft.Extensions.Logging.ILoggerProvider">
<summary>
Represents a type that can create instances of <see cref="T:Microsoft.Extensions.Logging.ILogger"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.ILoggerProvider.CreateLogger(System.String)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance.
</summary>
<param name="categoryName">The category name for messages produced by the logger.</param>
<returns></returns>
</member>
<member name="T:Microsoft.Extensions.Logging.Internal.FormattedLogValues">
<summary>
LogValues to enable formatting options supported by <see cref="M:string.Format"/>.
This also enables using {NamedformatItem} in the format string.
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.Internal.LogValuesFormatter">
<summary>
Formatter to convert the named format items like {NamedformatItem} to <see cref="M:string.Format"/> format.
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.Internal.NullScope">
<summary>
An empty scope without any logic
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.Internal.NullScope.Dispose">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLogger">
<summary>
Minimalistic logger that does nothing.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.BeginScope``1(``0)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory">
<summary>
An <see cref="T:Microsoft.Extensions.Logging.ILoggerFactory"/> used to create instance of
<see cref="T:Microsoft.Extensions.Logging.Abstractions.NullLogger"/> that logs nothing.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory.CreateLogger(System.String)">
<inheritdoc />
<remarks>
This returns a <see cref="T:Microsoft.Extensions.Logging.Abstractions.NullLogger"/> instance which logs nothing.
</remarks>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerFactory.AddProvider(Microsoft.Extensions.Logging.ILoggerProvider)">
<inheritdoc />
<remarks>
This method ignores the parameter and does nothing.
</remarks>
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLogger`1">
<summary>
Minimalistic logger that does nothing.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger`1.BeginScope``1(``0)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger`1.Log``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,``0,System.Exception,System.Func{``0,System.Exception,System.String})">
<inheritdoc />
<remarks>
This method ignores the parameters and does nothing.
</remarks>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLogger`1.IsEnabled(Microsoft.Extensions.Logging.LogLevel)">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider">
<summary>
Provider for the <see cref="T:Microsoft.Extensions.Logging.Abstractions.NullLogger"/>.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider.CreateLogger(System.String)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.NullLoggerProvider.Dispose">
<inheritdoc />
</member>
<member name="P:Microsoft.Extensions.Logging.Abstractions.Resource.UnexpectedNumberOfNamedParameters">
<summary>
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.Abstractions.Resource.FormatUnexpectedNumberOfNamedParameters(System.Object,System.Object,System.Object)">
<summary>
The format string '{0}' does not have the expected number of named parameters. Expected {1} parameter(s) but found {2} parameter(s).
</summary>
</member>
<member name="T:Microsoft.Extensions.Logging.ISupportExternalScope">
<summary>
Represents a <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider"/> that is able to consume external scope information.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.ISupportExternalScope.SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider)">
<summary>
Sets external scope information source for logger provider.
</summary>
<param name="scopeProvider"></param>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerExtensions">
<summary>
ILogger extension methods for common scenarios.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogDebug(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogDebug(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogDebug(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogDebug(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a debug log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogDebug("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogTrace(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogTrace(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogTrace(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogTrace(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a trace log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogTrace("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogInformation(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogInformation(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogInformation(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogInformation(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes an informational log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogInformation("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogWarning(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogWarning(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogWarning(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a warning log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogWarning("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogError(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogError(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogError(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogError(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes an error log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogError("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogCritical(0, exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogCritical(0, "Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogCritical(exception, "Error while processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats and writes a critical log message.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<example>logger.LogCritical("Processing request from {Address}", address)</example>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.LogLevel,System.String,System.Object[])">
<summary>
Formats and writes a log message at the specified log level.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="logLevel">Entry will be written on this level.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String,System.Object[])">
<summary>
Formats and writes a log message at the specified log level.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="logLevel">Entry will be written on this level.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.LogLevel,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a log message at the specified log level.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="logLevel">Entry will be written on this level.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.Log(Microsoft.Extensions.Logging.ILogger,Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.Exception,System.String,System.Object[])">
<summary>
Formats and writes a log message at the specified log level.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to write to.</param>
<param name="logLevel">Entry will be written on this level.</param>
<param name="eventId">The event id associated with the log.</param>
<param name="exception">The exception to log.</param>
<param name="message">Format string of the log message.</param>
<param name="args">An object array that contains zero or more objects to format.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExtensions.BeginScope(Microsoft.Extensions.Logging.ILogger,System.String,System.Object[])">
<summary>
Formats the message and creates a scope.
</summary>
<param name="logger">The <see cref="T:Microsoft.Extensions.Logging.ILogger"/> to create the scope in.</param>
<param name="messageFormat">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
<param name="args">An object array that contains zero or more objects to format.</param>
<returns>A disposable scope object. Can be null.</returns>
<example>
using(logger.BeginScope("Processing request from {Address}", address))
{
}
</example>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerExternalScopeProvider">
<summary>
Default implemenation of <see cref="T:Microsoft.Extensions.Logging.IExternalScopeProvider"/>
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExternalScopeProvider.ForEachScope``1(System.Action{System.Object,``0},``0)">
<inheritdoc />
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerExternalScopeProvider.Push(System.Object)">
<inheritdoc />
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerFactoryExtensions">
<summary>
ILoggerFactory extension methods for common scenarios.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerFactoryExtensions.CreateLogger``1(Microsoft.Extensions.Logging.ILoggerFactory)">
<summary>
Creates a new ILogger instance using the full name of the given type.
</summary>
<typeparam name="T">The type.</typeparam>
<param name="factory">The factory.</param>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerFactoryExtensions.CreateLogger(Microsoft.Extensions.Logging.ILoggerFactory,System.Type)">
<summary>
Creates a new ILogger instance using the full name of the given type.
</summary>
<param name="factory">The factory.</param>
<param name="type">The type.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.LoggerMessage">
<summary>
Creates delegates which can be later cached to log messages in a performant way.
</summary>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``1(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``2(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.DefineScope``3(System.String)">
<summary>
Creates a delegate which can be invoked to create a log scope.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log scope.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``1(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``2(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``3(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``4(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``5(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<typeparam name="T5">The type of the fifth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="M:Microsoft.Extensions.Logging.LoggerMessage.Define``6(Microsoft.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,System.String)">
<summary>
Creates a delegate which can be invoked for logging a message.
</summary>
<typeparam name="T1">The type of the first parameter passed to the named format string.</typeparam>
<typeparam name="T2">The type of the second parameter passed to the named format string.</typeparam>
<typeparam name="T3">The type of the third parameter passed to the named format string.</typeparam>
<typeparam name="T4">The type of the fourth parameter passed to the named format string.</typeparam>
<typeparam name="T5">The type of the fifth parameter passed to the named format string.</typeparam>
<typeparam name="T6">The type of the sixth parameter passed to the named format string.</typeparam>
<param name="logLevel">The <see cref="T:Microsoft.Extensions.Logging.LogLevel"/></param>
<param name="eventId">The event id</param>
<param name="formatString">The named format string</param>
<returns>A delegate which when invoked creates a log message.</returns>
</member>
<member name="T:Microsoft.Extensions.Logging.Logger`1">
<summary>
Delegates to a new <see cref="T:Microsoft.Extensions.Logging.ILogger"/> instance using the full name of the given type, created by the
provided <see cref="T:Microsoft.Extensions.Logging.ILoggerFactory"/>.
</summary>
<typeparam name="T">The type.</typeparam>
</member>
<member name="M:Microsoft.Extensions.Logging.Logger`1.#ctor(Microsoft.Extensions.Logging.ILoggerFactory)">
<summary>
Creates a new <see cref="T:Microsoft.Extensions.Logging.Logger`1"/>.
</summary>
<param name="factory">The factory.</param>
</member>
<member name="T:Microsoft.Extensions.Logging.LogLevel">
<summary>
Defines logging severity levels.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Trace">
<summary>
Logs that contain the most detailed messages. These messages may contain sensitive application data.
These messages are disabled by default and should never be enabled in a production environment.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Debug">
<summary>
Logs that are used for interactive investigation during development. These logs should primarily contain
information useful for debugging and have no long-term value.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Information">
<summary>
Logs that track the general flow of the application. These logs should have long-term value.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Warning">
<summary>
Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the
application execution to stop.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Error">
<summary>
Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a
failure in the current activity, not an application-wide failure.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.Critical">
<summary>
Logs that describe an unrecoverable application or system crash, or a catastrophic failure that requires
immediate attention.
</summary>
</member>
<member name="F:Microsoft.Extensions.Logging.LogLevel.None">
<summary>
Not used for writing log messages. Specifies that a logging category should not write any messages.
</summary>
</member>
</members>
</doc>

53
BeAUserSync/db.cs Normal file
View File

@@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace BeAUserSync
{
class db
{
string Connectionstring = "";
public DataSet dsdaten = new DataSet();
private SqlDataAdapter dadaten;
public db()
{
if (this.Connectionstring == "")
this.Connectionstring = Get_Connectionstring();
}
public string Get_Connectionstring()
{
return Properties.Settings.Default.connectionstring;
}
public void Get_Tabeldata_for_Update(string Tablename, bool StoredProc = false, bool is_SQL_String = false)
{
dsdaten.Clear();
dsdaten.Tables.Clear();
dadaten = new SqlDataAdapter(Tablename, this.Connectionstring);
dadaten.Fill(dsdaten, Tablename);
}
public void Update_Tabeldata()
{
SqlCommandBuilder cb = new SqlCommandBuilder(dadaten);
dadaten.Update(dsdaten, dsdaten.Tables[0].TableName);
}
}
}

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@@ -0,0 +1 @@
fa02f8a1ba8eaa6d3ca38776ae55054fa2212873

View File

@@ -0,0 +1,10 @@
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\obj\Debug\BeAUserSync.csproj.CoreCompileInputs.cache
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\bin\Debug\BeAUserSync.exe.config
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\bin\Debug\BeAUserSync.exe
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\bin\Debug\BeAUserSync.pdb
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\obj\Debug\BeAUserSync.exe
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\obj\Debug\BeAUserSync.pdb
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\bin\Debug\Microsoft.Extensions.Logging.Abstractions.dll
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\bin\Debug\Microsoft.Extensions.Logging.Abstractions.xml
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\obj\Debug\BeAUserSync.csproj.CopyComplete
E:\Software-Projekte\TKBDiverse\BEA\BeAUserSync\obj\Debug\BeAUserSync.csprojAssemblyReference.cache

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Galactic.ActiveDirectory" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.Configuration" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.Cryptography" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.EventLog" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.FileSystem" version="1.3.0.499" targetFramework="net472" />
<package id="Galactic.LDAP" version="1.3.0.499" targetFramework="net472" />
<package id="Horseshoe.NET" version="1.2.1" targetFramework="net472" />
<package id="Horseshoe.NET.ActiveDirectory" version="1.2.1" targetFramework="net472" />
<package id="Microsoft.Extensions.Logging.Abstractions" version="2.2.0" targetFramework="net472" />
</packages>