public void Disconnect() { // perform cleanup tasks consumer = null; }
public bool Connect(ISASTaskConsumer Consumer) { // perform any initialization needed when the application connects consumer = Consumer; // this is a good time to get the consumer.ActiveData, if your task requires it. return(true); }
public bool Connect(ISASTaskConsumer Consumer) { _logger.InfoFormat("API: ISASTaskAddIn.Connect(ISASTaskConsumer consumer): application launched: {0}", System.Environment.CommandLine); // perform any initialization needed when the application connects consumer = Consumer; // this is a good time to get the consumer.ActiveData, if your task requires it. return(true); }
/// <summary> /// SAS Enterprise Guide calls into this method when the /// task is initialized with data. /// </summary> /// <param name="consumer"></param> /// <returns></returns> public override bool Connect(ISASTaskConsumer consumer) { // let the base class initialize things base.Connect(consumer); // if the default output name is not yet set, // calculate a name using the libref.member input name if (string.IsNullOrEmpty(OutputData)) { // initialize the name of the output data string membername = SAS.Tasks.Toolkit.Helpers.UtilityFunctions.GetValidSasName( // seed the member name with the libref.member of the input data string.Format("{0}.{1}", Consumer.ActiveData.Library, Consumer.ActiveData.Member), // capped at a max length of 32 32); OutputData = string.Format("WORK.{0}", membername); } return(true); }
public bool Connect(ISASTaskConsumer Consumer) { // perform any initialization needed when the application connects consumer = Consumer; // this is a good time to get the consumer.ActiveData, if your task requires it. return true; }
public void Disconnect() { // perform cleanup tasks _logger.Info("API: ISASTaskAddIn.Disconnect()"); consumer = null; }
public bool Connect(ISASTaskConsumer Consumer) { _logger.InfoFormat("API: ISASTaskAddIn.Connect(ISASTaskConsumer consumer): application launched: {0}", System.Environment.CommandLine); // perform any initialization needed when the application connects consumer = Consumer; // this is a good time to get the consumer.ActiveData, if your task requires it. return true; }
public bool Connect(ISASTaskConsumer Consumer) { consumer = Consumer; return(true); }
public void Disconnect() { consumer = null; }
public bool Connect(ISASTaskConsumer Consumer) { consumer = Consumer; return true; }
/// <summary> /// SAS Enterprise Guide calls into this method when the /// task is initialized with data. /// </summary> /// <param name="consumer"></param> /// <returns></returns> public override bool Connect(ISASTaskConsumer consumer) { // let the base class initialize things base.Connect(consumer); // if the default output name is not yet set, // calculate a name using the libref.member input name if (string.IsNullOrEmpty(OutputData)) { // initialize the name of the output data string membername = SAS.Tasks.Toolkit.Helpers.UtilityFunctions.GetValidSasName( // seed the member name with the libref.member of the input data string.Format("{0}.{1}", Consumer.ActiveData.Library, Consumer.ActiveData.Member), // capped at a max length of 32 32); OutputData = string.Format("WORK.{0}", membername); } return true; }
public bool Connect(ISASTaskConsumer Consumer) { // perform any initialization needed when the application connects consumer = Consumer; return true; }