Skip to content

Missing connection private member #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glennsarti opened this issue May 4, 2017 · 0 comments
Open

Missing connection private member #2

glennsarti opened this issue May 4, 2017 · 0 comments

Comments

@glennsarti
Copy link

The Example backend references the Connection parameter in Connect and Disconnect (e.g. https://github.com/poshbotio/PoshBot.Example.Backend/blob/master/PoshBot.Example.Backend/Classes/ExampleBackend.ps1#L15), however the Connection is never set during initialisation.

Perhaps a better example would be to create the relevant connection object as there is already a ExampleConnection class.

e.g.

    # Constructor
    ExampleBackend ([string]$Token) {
        # Implement any needed initialization steps

        # Example connection settings
        $conn = [ExampleConnection]::New()
        $this.Connection = $conn
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant