public void InvokeParametersRequest(object source, ParametersRequestEventArgs args) { if (null != ParametersRequest) { ParametersRequest(source, args); } }
protected OptType Query <OptType> (string notice) where OptType : ResourceOptions { var args = new ParametersRequestEventArgs { Notice = notice }; FormatCatalog.Instance.InvokeParametersRequest(this, args); if (!args.InputResult) { throw new OperationCanceledException(); } return(GetOptions <OptType> (args.Options)); }