public int UpdateServiceInfo(Service service) { HostingPackageSvc packageSvc = (HostingPackageSvc)service; // return EcommerceProvider.UpdateHostingPlanSvc(SecurityContext.User.UserId, packageSvc.ServiceId, packageSvc.ProductId, packageSvc.ServiceName, (int)packageSvc.Status, packageSvc.PlanId, packageSvc.PackageId, (int)packageSvc.UserRole, (int)packageSvc.InitialStatus); }
public static int UpdateService(Service service) { // read service type ProductType svcType = GetServiceItemType(service.ServiceId); // create svc controller IServiceProvisioning controller = (IServiceProvisioning)Activator.CreateInstance( Type.GetType(svcType.ProvisioningController)); // return controller.UpdateServiceInfo(service); }
public HostingAddon(Service serviceInfo) : base(serviceInfo) { }
public HostingPlan(Service serviceInfo) : base(serviceInfo) { }
/// <summary> /// Ctor. /// </summary> /// <param name="service"></param> /// <param name="consumer"></param> public ProvisioningContext(Contract contract, Service service, ContractAccount consumer, Service parentSvc) { this.contractInfo = contract; this.serviceInfo = service; this.consumerInfo = consumer; this.parentSvcInfo = parentSvc; }
public int UpdateServiceInfo(Service serviceInfo) { DomainNameSvc domainSvc = (DomainNameSvc)serviceInfo; // serialize props & values string propertyNames = null; string propertyValues = null; SecurityUtils.SerializeGenericProfile(ref propertyNames, ref propertyValues, domainSvc); // update svc return EcommerceProvider.UpdateDomainNameSvc(SecurityContext.User.UserId, domainSvc.ServiceId, domainSvc.ProductId, (int)domainSvc.Status, domainSvc.DomainId, domainSvc.Fqdn, propertyNames, propertyValues); }
public DomainName(Service serviceInfo) : base(serviceInfo) { }
protected void LogServiceUsage(Service service, int svcCycleId, string billingPeriod, int periodLength) { // define start date DateTime startDate = ServiceController.GetServiceSuspendDate(service.ServiceId); // DateTime endDate = startDate; // switch (billingPeriod) { case "day": endDate = startDate.AddDays(periodLength); break; case "month": endDate = endDate.AddMonths(periodLength); break; case "year": endDate = endDate.AddYears(periodLength); break; } // add service usage record EcommerceProvider.AddServiceUsageRecord(SecurityContext.User.UserId, service.ServiceId, svcCycleId, startDate, endDate); }
public int UpdateServiceInfo(Service serviceInfo) { HostingAddonSvc addonSvc = (HostingAddonSvc)serviceInfo; // return EcommerceProvider.UpdateHostingAddonSvc(SecurityContext.User.UserId, addonSvc.ServiceId, addonSvc.ProductId, addonSvc.ServiceName, (int)addonSvc.Status, addonSvc.PlanId, addonSvc.PackageAddonId, addonSvc.Recurring, addonSvc.DummyAddon); }