init
This commit is contained in:
commit
234eb6726e
63
.gitattributes
vendored
Normal file
63
.gitattributes
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
###############################################################################
|
||||||
|
# Set default behavior to automatically normalize line endings.
|
||||||
|
###############################################################################
|
||||||
|
* text=auto
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Set default behavior for command prompt diff.
|
||||||
|
#
|
||||||
|
# This is need for earlier builds of msysgit that does not have it on by
|
||||||
|
# default for csharp files.
|
||||||
|
# Note: This is only used by command line
|
||||||
|
###############################################################################
|
||||||
|
#*.cs diff=csharp
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Set the merge driver for project and solution files
|
||||||
|
#
|
||||||
|
# Merging from the command prompt will add diff markers to the files if there
|
||||||
|
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
||||||
|
# the diff markers are never inserted). Diff markers may cause the following
|
||||||
|
# file extensions to fail to load in VS. An alternative would be to treat
|
||||||
|
# these files as binary and thus will always conflict and require user
|
||||||
|
# intervention with every merge. To do so, just uncomment the entries below
|
||||||
|
###############################################################################
|
||||||
|
#*.sln merge=binary
|
||||||
|
#*.csproj merge=binary
|
||||||
|
#*.vbproj merge=binary
|
||||||
|
#*.vcxproj merge=binary
|
||||||
|
#*.vcproj merge=binary
|
||||||
|
#*.dbproj merge=binary
|
||||||
|
#*.fsproj merge=binary
|
||||||
|
#*.lsproj merge=binary
|
||||||
|
#*.wixproj merge=binary
|
||||||
|
#*.modelproj merge=binary
|
||||||
|
#*.sqlproj merge=binary
|
||||||
|
#*.wwaproj merge=binary
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# behavior for image files
|
||||||
|
#
|
||||||
|
# image files are treated as binary by default.
|
||||||
|
###############################################################################
|
||||||
|
#*.jpg binary
|
||||||
|
#*.png binary
|
||||||
|
#*.gif binary
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# diff behavior for common document formats
|
||||||
|
#
|
||||||
|
# Convert binary document formats to text before diffing them. This feature
|
||||||
|
# is only available from the command line. Turn it on by uncommenting the
|
||||||
|
# entries below.
|
||||||
|
###############################################################################
|
||||||
|
#*.doc diff=astextplain
|
||||||
|
#*.DOC diff=astextplain
|
||||||
|
#*.docx diff=astextplain
|
||||||
|
#*.DOCX diff=astextplain
|
||||||
|
#*.dot diff=astextplain
|
||||||
|
#*.DOT diff=astextplain
|
||||||
|
#*.pdf diff=astextplain
|
||||||
|
#*.PDF diff=astextplain
|
||||||
|
#*.rtf diff=astextplain
|
||||||
|
#*.RTF diff=astextplain
|
||||||
156
.gitignore
vendored
Normal file
156
.gitignore
vendored
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
|
||||||
|
[Dd]ebug/
|
||||||
|
[Rr]elease/
|
||||||
|
x64/
|
||||||
|
build/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
|
||||||
|
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
|
||||||
|
!packages/*/build/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.log
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
*.ncrunch*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.Publish.xml
|
||||||
|
|
||||||
|
# NuGet Packages Directory
|
||||||
|
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
|
||||||
|
#packages/
|
||||||
|
|
||||||
|
# Windows Azure Build Output
|
||||||
|
csx
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Windows Store app package directory
|
||||||
|
AppPackages/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
sql/
|
||||||
|
*.Cache
|
||||||
|
ClientBin/
|
||||||
|
[Ss]tyle[Cc]op.*
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file to a newer
|
||||||
|
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
App_Data/*.mdf
|
||||||
|
App_Data/*.ldf
|
||||||
|
|
||||||
|
|
||||||
|
#LightSwitch generated files
|
||||||
|
GeneratedArtifacts/
|
||||||
|
_Pvt_Extensions/
|
||||||
|
ModelManifest.xml
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# Windows detritus
|
||||||
|
# =========================
|
||||||
|
|
||||||
|
# Windows image file caches
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Mac desktop service store files
|
||||||
|
.DS_Store
|
||||||
22
DigitalDataBNSPlugin.sln
Normal file
22
DigitalDataBNSPlugin.sln
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 15
|
||||||
|
VisualStudioVersion = 15.0.26228.9
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DigitalDataBNSPlugin", "DigitalDataBNSPlugin\DigitalDataBNSPlugin.vbproj", "{DB750646-E865-4004-BE6A-55F337700523}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{DB750646-E865-4004-BE6A-55F337700523}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{DB750646-E865-4004-BE6A-55F337700523}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{DB750646-E865-4004-BE6A-55F337700523}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{DB750646-E865-4004-BE6A-55F337700523}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
||||||
288
DigitalDataBNSPlugin/Controllers/DigitalDataController.vb
Normal file
288
DigitalDataBNSPlugin/Controllers/DigitalDataController.vb
Normal file
@ -0,0 +1,288 @@
|
|||||||
|
Imports System.Collections.Generic
|
||||||
|
Imports System.Net
|
||||||
|
Imports System.Net.Http
|
||||||
|
Imports System.Web.Http
|
||||||
|
Imports System.Web.Http.Description
|
||||||
|
Imports System.Data
|
||||||
|
Imports Windream.WebService.WebAPI.PlugIns
|
||||||
|
Imports Windream.WebService.Documents
|
||||||
|
Imports WMOBRWSLib
|
||||||
|
Imports WINDREAMLib
|
||||||
|
Imports WMCNNCTDLLLib
|
||||||
|
Imports DD_LIB_Standards.clsDatabase
|
||||||
|
|
||||||
|
Imports NLog
|
||||||
|
Imports NLog.Targets
|
||||||
|
Imports NLog.Config
|
||||||
|
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Xml
|
||||||
|
Imports System.Net.Http.Headers
|
||||||
|
Imports System.Threading
|
||||||
|
Imports System.Threading.Tasks
|
||||||
|
Imports System.Web.Http.Controllers
|
||||||
|
|
||||||
|
Namespace Controllers
|
||||||
|
|
||||||
|
Public Class DigitalDataController
|
||||||
|
Inherits PlugInBaseController
|
||||||
|
|
||||||
|
Private _routesSettings As IEnumerable(Of RouteSettings)
|
||||||
|
Private _docController As IDocumentsController
|
||||||
|
Private _session As IWMSession6
|
||||||
|
Private _logger As Logger
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Gets the routes settings for the controller.
|
||||||
|
''' This property will automatically be called from the windream Web Service - WebAPI framework.
|
||||||
|
''' </summary>
|
||||||
|
''' <value>
|
||||||
|
''' The routes settings of the controller.
|
||||||
|
''' </value>
|
||||||
|
Public Overrides ReadOnly Property RoutesSettings As IEnumerable(Of RouteSettings)
|
||||||
|
Get
|
||||||
|
Return _routesSettings
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
|
||||||
|
Public Overrides Function ExecuteAsync(controllerContext As HttpControllerContext, cancellationToken As CancellationToken) As Task(Of HttpResponseMessage)
|
||||||
|
Return MyBase.ExecuteAsync(controllerContext, cancellationToken)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' Initializes a new instance of the <see cref="DigitalDataController"/> class.
|
||||||
|
''' </summary>
|
||||||
|
Sub New()
|
||||||
|
Dim routesSettings As List(Of RouteSettings) = New List(Of RouteSettings)()
|
||||||
|
routesSettings.Add(New RouteSettings("DigitalDataController", "DigitalData/{action}/{id}", New With {.id = RouteParameter.Optional, .controller = "DigitalData"}))
|
||||||
|
_routesSettings = routesSettings
|
||||||
|
|
||||||
|
Dim config = New LoggingConfiguration()
|
||||||
|
|
||||||
|
Dim fileTarget = New FileTarget() With {
|
||||||
|
.Name = "BNSPlugin",
|
||||||
|
.ArchiveEvery = FileArchivePeriod.Day,
|
||||||
|
.FileName = "D:/ProgramFiles/DigitalData/SERVICES/WMWebServiceBNS/Log/${date:format=yyyy-MM-dd}-WMWebServiceBNS.txt",
|
||||||
|
.Layout = "${longdate} || ${message}"
|
||||||
|
}
|
||||||
|
|
||||||
|
config.AddTarget("file", fileTarget)
|
||||||
|
|
||||||
|
Dim rule = New LoggingRule("*", LogLevel.Debug, fileTarget)
|
||||||
|
config.LoggingRules.Add(rule)
|
||||||
|
|
||||||
|
LogManager.Configuration = config
|
||||||
|
_logger = LogManager.GetLogger("DigitalDataController")
|
||||||
|
|
||||||
|
Dim connectionString = GetConnectionString()
|
||||||
|
|
||||||
|
_logger.Info($"[DATABASE] Verbindung zu {connectionString}")
|
||||||
|
|
||||||
|
Dim dbInit = Init(connectionString)
|
||||||
|
If dbInit = False Then
|
||||||
|
_logger.Info("[DATABASE] Die Verbindung zur Datenbank konnte nicht hergestellt werden.")
|
||||||
|
Else
|
||||||
|
_logger.Info("[DATABASE] Die Verbindung zur Datenbank wurde hergestellt.")
|
||||||
|
End If
|
||||||
|
_logger.Info("[INIT] Die Initialisierung wurde abgeschlossen.")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Private Function GetPluginPath()
|
||||||
|
Dim s = Assembly.GetExecutingAssembly().CodeBase
|
||||||
|
s = New Uri(s).AbsolutePath
|
||||||
|
s = Uri.UnescapeDataString(s)
|
||||||
|
s = IO.Path.GetFullPath(s)
|
||||||
|
s = IO.Path.GetDirectoryName(s)
|
||||||
|
|
||||||
|
Return s
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function GetConnectionString()
|
||||||
|
Dim path As String = GetPluginPath()
|
||||||
|
Dim configFile = path & "\config.xml"
|
||||||
|
|
||||||
|
If IO.File.Exists(configFile) Then
|
||||||
|
Dim Doc As XmlDocument = New XmlDocument()
|
||||||
|
Doc.Load(configFile)
|
||||||
|
|
||||||
|
Dim connectionString As String = Doc.DocumentElement.SelectSingleNode("/config/connectionString").InnerText
|
||||||
|
|
||||||
|
_logger.Info($"[CONFIG] Konfigurations Datei {configFile} wurde gefunden")
|
||||||
|
Return connectionString
|
||||||
|
Else
|
||||||
|
_logger.Info($"[CONFIG] Konfigurations Datei {configFile} wurde NICHT gefunden!")
|
||||||
|
|
||||||
|
Return Nothing
|
||||||
|
End If
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
''' <summary>
|
||||||
|
''' A simple example of a http-get service method implementation.
|
||||||
|
''' </summary>
|
||||||
|
''' <param name="docId">windream Document-ID</param>
|
||||||
|
''' <param name="userId">windream User-ID</param>
|
||||||
|
''' <remarks>This method creates a nice greeting.</remarks>
|
||||||
|
'<ResponseType(GetType(String))>
|
||||||
|
<HttpGet>
|
||||||
|
Public Function BNSDownload(<FromUri> docId As Integer, <FromUri> userId As String) As HttpResponseMessage
|
||||||
|
Dim DT As DataTable
|
||||||
|
Dim Domain, Username, Password As String
|
||||||
|
|
||||||
|
_logger.Info($"[REQUEST] Anfrage von Benutzer-ID {userId} für Dokument-ID {docId}")
|
||||||
|
|
||||||
|
Try
|
||||||
|
DT = Return_Datatable($"SELECT DOMAIN, USERNAME, PW FROM TBDD_WEBSERVICE_USER_EX WHERE USERNAME_LINK = '{userId}'")
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info("[DATABASE] Fehler beim Zugriff auf die Datenbank ")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
|
||||||
|
Return CreateResponseMessage(Request, HttpStatusCode.InternalServerError)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
If DT.Rows.Count = 0 Then
|
||||||
|
_logger.Info($"[DATABASE] BenutzerID {userId} wurde nicht in der Datenbank gefunden.")
|
||||||
|
Return CreateResponseMessage(Request, $"Benutzer {userId} wurde nicht gefunden", HttpStatusCode.Unauthorized)
|
||||||
|
Else
|
||||||
|
Dim firstRow As DataRow = DT.Rows.Item(0)
|
||||||
|
|
||||||
|
Domain = firstRow.Item("DOMAIN")
|
||||||
|
Username = firstRow.Item("USERNAME")
|
||||||
|
Password = firstRow.Item("PW")
|
||||||
|
|
||||||
|
_logger.Info($"[DATABASE] BenutzerID {userId} wurde gefunden.")
|
||||||
|
End If
|
||||||
|
|
||||||
|
Dim loggedIn As Boolean = CreateSessionForUser(Username, Password, Domain)
|
||||||
|
|
||||||
|
If Not loggedIn Then
|
||||||
|
Return CreateResponseMessage(Request, $"Session für Benutzer {userId} konnte nicht aufgebaut werden. Weitere Informationen im Log", HttpStatusCode.BadRequest)
|
||||||
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
Dim WMDoc As IWMObject7
|
||||||
|
Dim WMStream As IWMStream
|
||||||
|
Dim fileContent As Byte()
|
||||||
|
|
||||||
|
Try
|
||||||
|
WMDoc = _session.GetWMObjectById(WMEntity.WMEntityDocument, docId)
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info("[WINDREAM/GetWMObjectById] Ein Fehler beim Zugriff auf Windream ist aufgetreten ")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
_logger.Info($"[WINDREAM/Session] Session für Benutzer {Username} wird geschlossen")
|
||||||
|
_session.Logout()
|
||||||
|
|
||||||
|
Return CreateResponseMessage(Request, "Document not found", HttpStatusCode.NotFound)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Try
|
||||||
|
WMStream = WMDoc.OpenStream("BinaryObject", WMObjectStreamOpenMode.WMObjectStreamOpenModeRead)
|
||||||
|
fileContent = WMStream.Read(WMStream.GetSize())
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info("[WINDREAM/OpenStream] Ein Fehler beim Zugriff auf Windream ist aufgetreten")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
_logger.Info($"[WINDREAM/Session] Session für Benutzer {Username} wird geschlossen")
|
||||||
|
_session.Logout()
|
||||||
|
|
||||||
|
Return CreateResponseMessage(Request, HttpStatusCode.InternalServerError)
|
||||||
|
End Try
|
||||||
|
|
||||||
|
_logger.Info($"[WINDREAM/Session] Session für Benutzer {Username} wird geschlossen")
|
||||||
|
_session.Logout()
|
||||||
|
|
||||||
|
' Gibt die Datei zum Download zurück
|
||||||
|
Return CreateFileResponseMessage(fileContent, WMDoc.aName)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function CreateFileResponseMessage(data As Byte(), filename As String) As HttpResponseMessage
|
||||||
|
_logger.Info($"[WINDREAM/Download] Datei {filename} wird für Download zur Verfügung gestellt")
|
||||||
|
Dim Res = New HttpResponseMessage()
|
||||||
|
Res.StatusCode = HttpStatusCode.OK
|
||||||
|
Res.Content = New ByteArrayContent(data)
|
||||||
|
Res.Content.Headers.ContentType = New MediaTypeHeaderValue("application/octet-stream")
|
||||||
|
Res.Content.Headers.ContentDisposition = New ContentDispositionHeaderValue("attachment") With {
|
||||||
|
.FileName = filename
|
||||||
|
}
|
||||||
|
Return Res
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function CreateSessionForUser(username As String, password As String, domain As String)
|
||||||
|
Dim WMServerBrowser As New ServerBrowser()
|
||||||
|
Dim DMSServer As String
|
||||||
|
Dim Connect As IWMConnect2
|
||||||
|
Dim Session As IWMSession6
|
||||||
|
Dim User As WMOTOOLLib.WMUserIdentity
|
||||||
|
|
||||||
|
Try
|
||||||
|
'' Get the current Windream Server
|
||||||
|
DMSServer = WMServerBrowser.GetCurrentServer()
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info($"[WINDREAM/ServerBrowser] DMS Server konnte nicht ausgelesen werden.")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
|
||||||
|
Try
|
||||||
|
' Create a User Object for Session
|
||||||
|
User = New WMOTOOLLib.WMUserIdentity()
|
||||||
|
User.aDomain = domain
|
||||||
|
User.aPassword = password
|
||||||
|
User.aUserName = username
|
||||||
|
User.aServerName = DMSServer
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info($"[WINDREAM/User] User Objekt konnte nicht erstellt werden.")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
_logger.Info("[WINDREAM/Session] Session wird aufgebaut")
|
||||||
|
_logger.Info($"[WINDREAM/Session] Username: {username}")
|
||||||
|
_logger.Info($"[WINDREAM/Session] Passwort: {password}")
|
||||||
|
_logger.Info($"[WINDREAM/Session] Domäne: {domain}")
|
||||||
|
_logger.Info($"[WINDREAM/Session] Windream Server: {DMSServer}")
|
||||||
|
|
||||||
|
Try
|
||||||
|
' Create Connect Object for Session
|
||||||
|
Connect = New WMConnect()
|
||||||
|
Connect.ModuleId = 9
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info($"[WINDREAM/Connect] Connect Objekt konnte nicht erstellt werden.")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
|
||||||
|
|
||||||
|
Try
|
||||||
|
Session = Connect.Login(User)
|
||||||
|
_logger.Info($"[WINDREAM/Session] Session wurde aufgebaut")
|
||||||
|
|
||||||
|
If Session.aLoggedin Then
|
||||||
|
_session = Session
|
||||||
|
|
||||||
|
_logger.Info($"[WINDREAM/Session] Benutzer {username} ist eingeloggt")
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
_logger.Info($"[WINDREAM/Session] Fehler beim Aufbau der Session. Benutzer {username} ist nicht eingeloggt!")
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
Catch ex As Exception
|
||||||
|
_logger.Info($"[WINDREAM/Session] Fehler bei Login von Benutzer {username}!")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
|
||||||
|
If Not IsNothing(Session) AndAlso Session.aLoggedin Then
|
||||||
|
_session = Session
|
||||||
|
_logger.Info($"[WINDREAM/Session] Benutzer {username} ist eingeloggt")
|
||||||
|
Return True
|
||||||
|
Else
|
||||||
|
_logger.Info($"[WINDREAM/Session] Fehler beim Aufbau der Session. Benutzer {username} ist nicht eingeloggt!")
|
||||||
|
_logger.Info(ex.Message)
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
End Try
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
End Namespace
|
||||||
182
DigitalDataBNSPlugin/DigitalDataBNSPlugin.vbproj
Normal file
182
DigitalDataBNSPlugin/DigitalDataBNSPlugin.vbproj
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{DB750646-E865-4004-BE6A-55F337700523}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>DigitalDataBNSPlugin</RootNamespace>
|
||||||
|
<AssemblyName>DigitalDataBNSPlugin</AssemblyName>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<MyType>Windows</MyType>
|
||||||
|
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<DefineDebug>true</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DocumentationFile>DigitalDataBNSPlugin.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<DefineDebug>false</DefineDebug>
|
||||||
|
<DefineTrace>true</DefineTrace>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DocumentationFile>DigitalDataBNSPlugin.xml</DocumentationFile>
|
||||||
|
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionExplicit>On</OptionExplicit>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionCompare>Binary</OptionCompare>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionStrict>Off</OptionStrict>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<OptionInfer>On</OptionInfer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="DD_LIB_Standards">
|
||||||
|
<HintPath>D:\ProgramFiles\windream\windream Web Service SDK\Libraries\DigitalData\DD_LIB_Standards.dll</HintPath>
|
||||||
|
<EmbedInteropTypes>False</EmbedInteropTypes>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Interop.WINDREAMLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
<HintPath>D:\ProgramFiles\windream\windream Web Service SDK\Libraries\Windream\Interop.WINDREAMLib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Interop.WMOBRWSLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
<HintPath>D:\ProgramFiles\windream\windream Web Service SDK\Libraries\Windream\Interop.WMOBRWSLib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Interop.WMOTOOLLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
<HintPath>D:\ProgramFiles\windream\windream Web Service SDK\Libraries\Windream\Interop.WMOTOOLLib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Practices.Unity.Interception, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Microsoft.Practices.Unity.RegistrationByConvention, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\NLog.4.4.12\lib\net45\NLog.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Swashbuckle.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd1bb07a5ac7c7bc, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.configuration" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Data.Linq" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.ServiceModel" />
|
||||||
|
<Reference Include="System.Web" />
|
||||||
|
<Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.XML" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="Windream.WebService, Version=0.9.40.0, Culture=neutral, PublicKeyToken=d138adf75b760c17, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windream.WebService.DTO, Version=0.9.40.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windream.WebService.DTO.Impl, Version=0.9.40.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windream.WebService.Impl, Version=0.9.40.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windream.WebService.Logging, Version=0.9.35.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windream.WebService.WebAPI, Version=0.9.40.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Import Include="Microsoft.VisualBasic" />
|
||||||
|
<Import Include="System" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Controllers\DigitalDataController.vb" />
|
||||||
|
<Compile Include="Models\TemplateModel.vb" />
|
||||||
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
<Compile Include="My Project\Application.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Application.myapp</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Resources.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="My Project\Settings.Designer.vb">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ServiceRegistrator.vb" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Include="My Project\Resources.resx">
|
||||||
|
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||||
|
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="app.config" />
|
||||||
|
<None Include="My Project\Application.myapp">
|
||||||
|
<Generator>MyApplicationCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="My Project\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<CustomToolNamespace>My</CustomToolNamespace>
|
||||||
|
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<COMReference Include="WMCNNCTDLLLib">
|
||||||
|
<Guid>{FB8CA955-23B9-11D3-B1F7-00104B071DD4}</Guid>
|
||||||
|
<VersionMajor>1</VersionMajor>
|
||||||
|
<VersionMinor>0</VersionMinor>
|
||||||
|
<Lcid>0</Lcid>
|
||||||
|
<WrapperTool>tlbimp</WrapperTool>
|
||||||
|
<Isolated>False</Isolated>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
</COMReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="config.xml">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||||
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
</Target>
|
||||||
|
<Target Name="AfterBuild">
|
||||||
|
</Target>
|
||||||
|
-->
|
||||||
|
</Project>
|
||||||
9
DigitalDataBNSPlugin/Models/TemplateModel.vb
Normal file
9
DigitalDataBNSPlugin/Models/TemplateModel.vb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Namespace Models
|
||||||
|
|
||||||
|
Public Class TemplateModel
|
||||||
|
|
||||||
|
Public Property Message As String
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
End Namespace
|
||||||
13
DigitalDataBNSPlugin/My Project/Application.Designer.vb
generated
Normal file
13
DigitalDataBNSPlugin/My Project/Application.Designer.vb
generated
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <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>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
10
DigitalDataBNSPlugin/My Project/Application.myapp
Normal file
10
DigitalDataBNSPlugin/My Project/Application.myapp
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<MySubMain>false</MySubMain>
|
||||||
|
<SingleInstance>false</SingleInstance>
|
||||||
|
<ShutdownMode>0</ShutdownMode>
|
||||||
|
<EnableVisualStyles>true</EnableVisualStyles>
|
||||||
|
<AuthenticationMode>0</AuthenticationMode>
|
||||||
|
<ApplicationType>1</ApplicationType>
|
||||||
|
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||||
|
</MyApplicationData>
|
||||||
35
DigitalDataBNSPlugin/My Project/AssemblyInfo.vb
Normal file
35
DigitalDataBNSPlugin/My Project/AssemblyInfo.vb
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
Imports System
|
||||||
|
Imports System.Reflection
|
||||||
|
Imports System.Runtime.InteropServices
|
||||||
|
|
||||||
|
' General Information about an assembly is controlled through the following
|
||||||
|
' set of attributes. Change these attribute values to modify the information
|
||||||
|
' associated with an assembly.
|
||||||
|
|
||||||
|
' Review the values of the assembly attributes
|
||||||
|
|
||||||
|
<Assembly: AssemblyTitle("DigitalDataBNSPlugin")>
|
||||||
|
<Assembly: AssemblyDescription("")>
|
||||||
|
<Assembly: AssemblyCompany("Digital Data")>
|
||||||
|
<Assembly: AssemblyProduct("DigitalDataBNSPlugin")>
|
||||||
|
<Assembly: AssemblyCopyright("Copyright © 2017")>
|
||||||
|
<Assembly: AssemblyTrademark("")>
|
||||||
|
|
||||||
|
<Assembly: ComVisible(False)>
|
||||||
|
|
||||||
|
'The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
|
<Assembly: Guid("8021afb9-be51-4690-ba0a-3334422c7242")>
|
||||||
|
|
||||||
|
' Version information for an assembly consists of the following four values:
|
||||||
|
'
|
||||||
|
' Major Version
|
||||||
|
' Minor Version
|
||||||
|
' Build Number
|
||||||
|
' Revision
|
||||||
|
'
|
||||||
|
' You can specify all the values or you can default the Build and Revision Numbers
|
||||||
|
' by using the '*' as shown below:
|
||||||
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
|
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||||
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
63
DigitalDataBNSPlugin/My Project/Resources.Designer.vb
generated
Normal file
63
DigitalDataBNSPlugin/My Project/Resources.Designer.vb
generated
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <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>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Namespace My.Resources
|
||||||
|
|
||||||
|
'Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||||
|
'-Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||||
|
'Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||||
|
'mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||||
|
'''<summary>
|
||||||
|
''' Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||||
|
Friend Module Resources
|
||||||
|
|
||||||
|
Private resourceMan As Global.System.Resources.ResourceManager
|
||||||
|
|
||||||
|
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||||
|
Get
|
||||||
|
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||||
|
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("DigitalDataBNSPlugin.Resources", GetType(Resources).Assembly)
|
||||||
|
resourceMan = temp
|
||||||
|
End If
|
||||||
|
Return resourceMan
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
'''<summary>
|
||||||
|
''' Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||||
|
''' Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||||
|
'''</summary>
|
||||||
|
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||||
|
Get
|
||||||
|
Return resourceCulture
|
||||||
|
End Get
|
||||||
|
Set
|
||||||
|
resourceCulture = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
117
DigitalDataBNSPlugin/My Project/Resources.resx
Normal file
117
DigitalDataBNSPlugin/My Project/Resources.resx
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
73
DigitalDataBNSPlugin/My Project/Settings.Designer.vb
generated
Normal file
73
DigitalDataBNSPlugin/My Project/Settings.Designer.vb
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
'------------------------------------------------------------------------------
|
||||||
|
' <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>
|
||||||
|
'------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Option Strict On
|
||||||
|
Option Explicit On
|
||||||
|
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||||
|
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.0.1.0"), _
|
||||||
|
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Partial Friend NotInheritable Class MySettings
|
||||||
|
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||||
|
|
||||||
|
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||||
|
|
||||||
|
#Region "Automatische My.Settings-Speicherfunktion"
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
Private Shared addedHandler As Boolean
|
||||||
|
|
||||||
|
Private Shared addedHandlerLockObject As New Object
|
||||||
|
|
||||||
|
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||||
|
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||||
|
If My.Application.SaveMySettingsOnExit Then
|
||||||
|
My.Settings.Save()
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
#End If
|
||||||
|
#End Region
|
||||||
|
|
||||||
|
Public Shared ReadOnly Property [Default]() As MySettings
|
||||||
|
Get
|
||||||
|
|
||||||
|
#If _MyType = "WindowsForms" Then
|
||||||
|
If Not addedHandler Then
|
||||||
|
SyncLock addedHandlerLockObject
|
||||||
|
If Not addedHandler Then
|
||||||
|
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||||
|
addedHandler = True
|
||||||
|
End If
|
||||||
|
End SyncLock
|
||||||
|
End If
|
||||||
|
#End If
|
||||||
|
Return defaultInstance
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
Namespace My
|
||||||
|
|
||||||
|
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||||
|
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||||
|
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||||
|
Friend Module MySettingsProperty
|
||||||
|
|
||||||
|
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||||
|
Friend ReadOnly Property Settings() As Global.DigitalDataBNSPlugin.My.MySettings
|
||||||
|
Get
|
||||||
|
Return Global.DigitalDataBNSPlugin.My.MySettings.Default
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
End Module
|
||||||
|
End Namespace
|
||||||
5
DigitalDataBNSPlugin/My Project/Settings.settings
Normal file
5
DigitalDataBNSPlugin/My Project/Settings.settings
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||||
|
<Profiles />
|
||||||
|
<Settings />
|
||||||
|
</SettingsFile>
|
||||||
22
DigitalDataBNSPlugin/ServiceRegistrator.vb
Normal file
22
DigitalDataBNSPlugin/ServiceRegistrator.vb
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Imports Microsoft.Practices.Unity
|
||||||
|
Imports Windream.WebService.Logging
|
||||||
|
Imports Windream.WebService.Logging.Impl
|
||||||
|
Imports Windream.WebService.PlugIns
|
||||||
|
Imports Windream.WebService.Documents
|
||||||
|
Imports Windream.WebService.Documents.Impl
|
||||||
|
|
||||||
|
Namespace WindreamWebServicePlugin1
|
||||||
|
|
||||||
|
Public Class ServiceRegistrator
|
||||||
|
Implements IServiceRegistrator
|
||||||
|
|
||||||
|
Public Sub RegisterServices(container As IUnityContainer) Implements IServiceRegistrator.RegisterServices
|
||||||
|
' container.RegisterType(Of TInterface, TImpl)()
|
||||||
|
container.RegisterType(Of ILogging, LoggingForNet)
|
||||||
|
|
||||||
|
Dim l = New LoggingForNet()
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
End Namespace
|
||||||
11
DigitalDataBNSPlugin/app.config
Normal file
11
DigitalDataBNSPlugin/app.config
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
4
DigitalDataBNSPlugin/config.xml
Normal file
4
DigitalDataBNSPlugin/config.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<config>
|
||||||
|
<connectionString>Data Source=dub1sql202;Initial Catalog=DD_ECM;Persist Security Info=True;User ID=sa;Password=dd</connectionString>
|
||||||
|
</config>
|
||||||
4
DigitalDataBNSPlugin/packages.config
Normal file
4
DigitalDataBNSPlugin/packages.config
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<packages>
|
||||||
|
<package id="NLog" version="4.4.12" targetFramework="net451" />
|
||||||
|
</packages>
|
||||||
BIN
packages/NLog.4.4.12/NLog.4.4.12.nupkg
vendored
Normal file
BIN
packages/NLog.4.4.12/NLog.4.4.12.nupkg
vendored
Normal file
Binary file not shown.
BIN
packages/NLog.4.4.12/lib/MonoAndroid10/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/MonoAndroid10/NLog.dll
vendored
Normal file
Binary file not shown.
21711
packages/NLog.4.4.12/lib/MonoAndroid10/NLog.xml
vendored
Normal file
21711
packages/NLog.4.4.12/lib/MonoAndroid10/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/Xamarin.iOS10/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/Xamarin.iOS10/NLog.dll
vendored
Normal file
Binary file not shown.
21611
packages/NLog.4.4.12/lib/Xamarin.iOS10/NLog.xml
vendored
Normal file
21611
packages/NLog.4.4.12/lib/Xamarin.iOS10/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/net35/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/net35/NLog.dll
vendored
Normal file
Binary file not shown.
24151
packages/NLog.4.4.12/lib/net35/NLog.xml
vendored
Normal file
24151
packages/NLog.4.4.12/lib/net35/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/net40/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/net40/NLog.dll
vendored
Normal file
Binary file not shown.
24442
packages/NLog.4.4.12/lib/net40/NLog.xml
vendored
Normal file
24442
packages/NLog.4.4.12/lib/net40/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/net45/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/net45/NLog.dll
vendored
Normal file
Binary file not shown.
24637
packages/NLog.4.4.12/lib/net45/NLog.xml
vendored
Normal file
24637
packages/NLog.4.4.12/lib/net45/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/sl4/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/sl4/NLog.dll
vendored
Normal file
Binary file not shown.
17721
packages/NLog.4.4.12/lib/sl4/NLog.xml
vendored
Normal file
17721
packages/NLog.4.4.12/lib/sl4/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/sl5/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/sl5/NLog.dll
vendored
Normal file
Binary file not shown.
17811
packages/NLog.4.4.12/lib/sl5/NLog.xml
vendored
Normal file
17811
packages/NLog.4.4.12/lib/sl5/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
packages/NLog.4.4.12/lib/wp8/NLog.dll
vendored
Normal file
BIN
packages/NLog.4.4.12/lib/wp8/NLog.dll
vendored
Normal file
Binary file not shown.
16992
packages/NLog.4.4.12/lib/wp8/NLog.xml
vendored
Normal file
16992
packages/NLog.4.4.12/lib/wp8/NLog.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user