November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I believe that you should be able to cast the sender object to a ITransferHandlerContext instead and access the TransferHandlers from there in the same way that you are currently doing it.
Let us know how you get on!
Henrik
Disclaimer: This suggestion was cooked up without actually trying anything out and it therefore possible that it might fail miserably.
mm .. good point I'm stuck with similar issue. I got to the point to hook up to "IDataExportEvents.Starting" event of using:
public class DataExporterContextEventArgs : EventArgs { public DataExporterContextEventArgs(IDataExporter dataExporter, ITransferHandlerContext context); public IDataExporter DataExporter { get; } public ITransferHandlerContext TransferHandlerContext { get; } }
I used "DataExporter" as before. Works for me but haven't try with Tags!
Aria
As Henrik is suggesting you should be able to get the DDS trnafer handler from context. Something like:
var ddsHandler = transferHandlerContext.TransferHandlers.OfType<IDynamicDataTransfer>().FirstOrDefault();
I'm working on upgrading one of our modules (Geta.Tags) to support Episerver 10. I'm however a little stuck with this class: https://github.com/Geta/Tags/blob/master/src/TagsTransferModule.cs. Since DataExporter is obsolete we need to use IDataExportEvents instead, but I wasn't able to figure out how line 39 would look:
Thanks for any pointers!
Frederik