FuelSDK-CSharp icon indicating copy to clipboard operation
FuelSDK-CSharp copied to clipboard

Can this SDK be used with .Net Standard ?

Open rcoode opened this issue 5 years ago • 5 comments

I'm trying to use the SDK with a .Net Standard project and have added all the the required packages but when I attempt to create a new ETClient I get the following error message

System.PlatformNotSupportedException
  HResult=0x80131539
  Message=TransportSecurityBindingElement.BuildChannelFactoryCore is not supported.
  Source=System.Private.ServiceModel
  StackTrace:
   at System.ServiceModel.Channels.TransportSecurityBindingElement.BuildChannelFactoryCore[TChannel](BindingContext context)
   at System.ServiceModel.Channels.SecurityBindingElement.BuildChannelFactory[TChannel](BindingContext context)
   at System.ServiceModel.Channels.Binding.BuildChannelFactory[TChannel](BindingParameterCollection parameters)
   at System.ServiceModel.Channels.ServiceChannelFactory.BuildChannelFactory(ServiceEndpoint serviceEndpoint, Boolean useActiveAutoClose)
   at System.ServiceModel.ChannelFactory.OnOpening()
   at System.ServiceModel.Channels.CommunicationObject.<System-ServiceModel-IAsyncCommunicationObject-OpenAsync>d__79.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.ServiceModel.Channels.CommunicationObject.<OpenAsyncInternal>d__78.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.ServiceModel.ChannelFactory.EnsureOpened()
   at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
   at System.ServiceModel.ClientBase`1.get_Channel()
   at System.ServiceModel.ClientBase`1.get_InnerChannel()
   at FuelSDK.ETClient..ctor(NameValueCollection parameters, RefreshState refreshState)
   at MFL.DealerPortal.ExactTarget.Services.ExactTargetService..ctor(IOptions`1 exactTargetConfig) in C:\Projects\MFL.DealerPortal\MFL.DealerPortal.ExactTarget\Services\ExactTargetService.cs:line 19

Can I resolve this or is .NET Standard not supported. If not then do you have an alternative API I can use to maintain subscriber lists for ExactTarget

Thanks

rcoode avatar Mar 06 '19 15:03 rcoode

Hi, any traction on this? It would be very useful to my team as well.

queen-of-code avatar Jun 21 '19 00:06 queen-of-code

Hey all - I just took a look at the code, and looks like upgrading would be pretty straightforward.

I would say, 2 days effort to upgrade and a few to refactor.

If you want it done, I don’t mind giving it a punt, but it would totally be not tested as I no longer have access to ET. So would rely on your teams to test it.

Sent from my iPhone

On 21 Jun 2019, at 05:46, Melissa [email protected] wrote:

Hi, any traction on this? It would be very useful to my team as well.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Jetski5822 avatar Jun 21 '19 03:06 Jetski5822

I would be delighted to test it if you make a cut. However, know that you may run into https://github.com/dotnet/wcf/issues/1257 which is apparently targeted into the dotnet core 3.0 release.

queen-of-code avatar Jun 21 '19 03:06 queen-of-code

We are interested in the .net standard version too, what is needed to accomplish this?

Nirmalatatikonda avatar Feb 10 '20 22:02 Nirmalatatikonda

Here is a gentleman who was nice enough to port it https://github.com/pepperpark/FuelSDK-CSharp

dorkalord avatar Apr 21 '20 13:04 dorkalord