public ServerCommand(CommandDispatcher dispatcher, string name, string sourceCodeScript) { _Dispatcher = dispatcher; _Name = name; _CommandSyntax = sourceCodeScript; _result = new UAReturn(); }
//public ServerDataSource(CommandDispatcher dispatcher, string fileName, string datasetname) //{ // this.Dispatcher = dispatcher; // this.FileNameWithPath = fileName;//.ToLower(); // this.FileName = System.IO.Path.GetFileName(FileNameWithPath);//filename // this.Name = datasetname;//dataset name assigned by application to the opened dataset(.sav) file // this.Extension = Path.GetExtension(fileName).Replace('.', ' ').Trim(); //fileName.Substring(fileName.LastIndexOf(".")+1); //} public ServerDataSource(CommandDispatcher dispatcher, string fileName, string datasetname, string sheetname = "") { this.Dispatcher = dispatcher; this.FileNameWithPath = fileName;//.ToLower(); this.FileName = System.IO.Path.GetFileName(FileNameWithPath);//filename this.SheetName = sheetname;//29Apr2015 this.Name = datasetname;//dataset name assigned by application to the opened dataset(.sav) file this.Extension = Path.GetExtension(fileName).Replace('.', ' ').Trim(); //fileName.Substring(fileName.LastIndexOf(".")+1); }
public ServerCommand(CommandDispatcher dispatcher) : this(dispatcher, "", "") { }