<webmethod()> _ Public Function Test(ByVal strLang As String) As String() Dim obAr(0) As Object obAr.SetValue(strLang, 0) '' MyLogger is a class where I added SyncLock to my write method Dim MyLogger As New MyLogger(obAr) '' here I implemented a thread for my write method to work in background Dim t As New Thread(AddressOf MyLogger.Write) t.Start() ''Here I am connecting to my database to work with data ... cnnString = ConfigurationManager.ConnectionStrings("connStringMobileApp").ConnectionString Dim cnnConnection As New SqlConnection(cnnString) .... End Function
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)