1

The f# code below fails to compile with the error: The member or object constructor OnBeginDialogAsync is not accessible. Private members may only be accessed from within the declaring type. Protected members may only be accessed from an extending type and cannot be accessed from inner lambda expressions.

type BaseDialog ( dialogId ) =
    inherit ComponentDialog( dialogId )

    override self.OnBeginDialogAsync(innerDc: DialogContext, options: obj, cancellationToken : CancellationToken) : Task<DialogTurnResult> =
        task{
            return! base.OnBeginDialogAsync(innerDc, options, cancellationToken )
        }

This uses task{} from https://github.com/rspeele/TaskBuilder.fs

Any way to invoke the base member from the override?

JJ_Wailes
  • 2,207
  • 1
  • 9
  • 17
stephen
  • 11
  • 1

0 Answers0