/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool generatedObjectValueAcquired = false; if (this.Session.ContainsKey("generatedObject")) { this._generatedObjectField = ((global::Salesforce.VisualStudio.Services.ConnectedService.CodeModel.GeneratedObject)(this.Session["generatedObject"])); generatedObjectValueAcquired = true; } if ((generatedObjectValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("generatedObject"); if ((data != null)) { this._generatedObjectField = ((global::Salesforce.VisualStudio.Services.ConnectedService.CodeModel.GeneratedObject)(data)); } } } }
/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool generatedObjectValueAcquired = false; if (this.Session.ContainsKey("generatedObject")) { this._generatedObjectField = ((global::Salesforce.VisualStudio.Services.ConnectedService.CodeModel.GeneratedObject)(this.Session["generatedObject"])); generatedObjectValueAcquired = true; } if ((generatedObjectValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("generatedObject"); if ((data != null)) { this._generatedObjectField = ((global::Salesforce.VisualStudio.Services.ConnectedService.CodeModel.GeneratedObject)(data)); } } } }