Giter Site home page Giter Site logo

Comments (8)

ats124 avatar ats124 commented on September 8, 2024

Thanks for the report. I'll check it.

from backlog4net.

ats124 avatar ats124 commented on September 8, 2024

@trinhbaan24 I checked it but it worked in my environment. Does other methods work?

from backlog4net.

trinhbaan24 avatar trinhbaan24 commented on September 8, 2024

@ats124

this is my source code. other methods is not work too. does this code true?

`Imports Backlog4net
Imports Backlog4net.Api.Option
Imports Backlog4net.Conf

Module C00_E00XF
'*******************************************************************************
#Region ""
#End Region
'#Region "MAIN"
Sub Main()
Dim task = New Task(AddressOf ProcessDataAsync)
' Start and wait for task to end.
task.Start()
task.Wait()

    Console.ReadLine()
End Sub

Async Sub ProcessDataAsync()

    Dim conf As New BacklogJpConfigure("chiyotest") 'spaceKey
    conf.ApiKey = "ICESrRCu3LmGPNtJIwA6cyndnFsDNeiopFJP1QltR5rWB0RKvcCFiY9G7n1gKdrh"
    Dim backlogClient = New BacklogClientFactory(conf).NewClient()
    Try
        Dim project = Await backlogClient.GetProjectAsync("T_CHIYODA")
        Console.WriteLine("Please wait, processing find projectId")
        Dim projectId = project.Id

        Dim listIssue = Await backlogClient.GetIssuesAsync(New GetIssuesParams(projectId))
        Console.WriteLine("Please wait, processing")


        Console.WriteLine("Count: " + listIssue.Count.ToString)
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try

End Sub`

from backlog4net.

ats124 avatar ats124 commented on September 8, 2024

@trinhbaan24

Your program worked in my environment.

The results are as follows

Please wait, processing find projectId
Please wait, processing
Count: 20

However, asynchronous methods are incorrectly used, which may cause problems.

Can not set asynchronous method in Task constructor argument.

Dim task = New Task(AddressOf ProcessDataAsync)

Please try to see if the following program works properly.

    Sub Main()
        ProcessDataAsync().Wait()
        Console.ReadLine()
    End Sub

    Async Function ProcessDataAsync() As Task
        Dim conf As New BacklogJpConfigure("chiyotest") 'spaceKey
        conf.ApiKey = "ICESrRCu3LmGPNtJIwA6cyndnFsDNeiopFJP1QltR5rWB0RKvcCFiY9G7n1gKdrh"
        Dim backlogClient = New BacklogClientFactory(conf).NewClient()
        Try
            Dim project = Await backlogClient.GetProjectAsync("T_CHIYODA")
            Console.WriteLine("Please wait, processing find projectId")
            Dim projectId = project.Id

            Dim listIssue = Await backlogClient.GetIssuesAsync(New GetIssuesParams(projectId))
            Console.WriteLine("Please wait, processing")


            Console.WriteLine("Count: " + listIssue.Count.ToString)
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
    End Function

from backlog4net.

trinhbaan24 avatar trinhbaan24 commented on September 8, 2024

Backlog4net.zip
@ats124

thank for your comfirm.
However,it not worked in my environment.
image

can you send to me your Backlog4net.dll?
please!

from backlog4net.

ats124 avatar ats124 commented on September 8, 2024

@trinhbaan24
I will share the Visual Studio 2017 Project with you built and executed your source code.

Please download here.
https://www.dropbox.com/s/onar9ar8oatck6n/ConsoleApp1.zip?dl=1

from backlog4net.

trinhbaan24 avatar trinhbaan24 commented on September 8, 2024

@ats124

thank you very much
it is worked.

from backlog4net.

ats124 avatar ats124 commented on September 8, 2024

@trinhbaan24
That's good.
I close this issue.

from backlog4net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.