Example #1
0
 public void InvokeParametersRequest(object source, ParametersRequestEventArgs args)
 {
     if (null != ParametersRequest)
     {
         ParametersRequest(source, args);
     }
 }
Example #2
0
        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));
        }