question

lboudreaux avatar image
lboudreaux asked lboudreaux commented

Unable to connect after disposing CloverConnector on Clover Mini

I am integrating the Clover Mini into an existing .NET application and have run into a problem. After I make a single call to the device for a pre-auth, I dispose of the CloverConnector. When I attempt to Initialize the next time, I get no response.

I can't perform two transactions in a row. I have to completely close down my application before I can perform a second pre-auth.

I have a sample project that reproduces the problem that I can submit if needed.
Clover Mini
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

rachel avatar image
rachel Deactivated answered lboudreaux commented
Hi @lboudreaux,

After you call Dispose(), the object is no longer useable.

CloverConnectors are designed to be disposed of at app shutdown, not created and disposed of on a per-transaction basis.
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lboudreaux avatar image lboudreaux commented ·

Thank you, I figured out that I have to make it Static for it to work.

0 Likes 0 ·

Welcome to the
Clover Developer Community