private void ExecutePostEntityCreate(LocalPluginContext localContext) { using (AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService, localContext.TracingService)) { logic.CreateEntityLogic(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId, licenseMode); } }
private void ExecutePostAutoNumberPublish(LocalPluginContext localContext) { if (licenseMode != LicenseMode.Unavailable) { using (AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService, localContext.TracingService)) logic.AutoNumberPublishLogic(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId); } }
protected void ExecutePostAutoNumberFill(LocalPluginContext localContext) { if (localContext == null) { throw new ArgumentNullException("localContext"); } string errMessage = ""; bool isLicensed = Helper.ValidateLicense(out errMessage); if (isLicensed) { AutoNumberLogic logic = new AutoNumberLogic(localContext.OrganizationService); logic.FillAutoNumber(localContext.PluginExecutionContext.PrimaryEntityName, localContext.PluginExecutionContext.PrimaryEntityId); } }