Starts in:
1 DAY
23 HRS
34 MIN
44 SEC
Starts in:
1 D
23 H
34 M
44 S

Activities of "sairam.thirupathuru"

Hello Liang Shiwei,

I have provided all the code screenshots. Please let me know exactly what you are looking for.

SaasService.Contract csproj

<Project Sdk="Microsoft.NET.Sdk">
  <Import Project="..\common.props" />
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <RootNamespace>CastandCrew.PSLWeb.SaasService</RootNamespace>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <CopyLocalLockFileAssemblies>True</CopyLocalLockFileAssemblies>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.4" />
    <PackageReference Include="Volo.Abp.Features" Version="8.2.1" />
    <PackageReference Include="Volo.Saas.Host.Application.Contracts" Version="8.2.1" />
    <PackageReference Include="Volo.Saas.Tenant.Application.Contracts" Version="8.2.1" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Volo.Abp.UI" Version="8.2.1" />
    <PackageReference Include="Volo.Abp.Validation" Version="8.2.1" />
    <PackageReference Include="Volo.Abp.Authorization.Abstractions" Version="8.2.1" />
    <PackageReference Include="Volo.Abp.Ddd.Application.Contracts" Version="8.2.1" />
    <PackageReference Include="Volo.Abp.Ddd.Domain.Shared" Version="8.2.1" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Localization\SaasService\*.json" />
    <Content Remove="Localization\SaasService\*.json" />
  </ItemGroup>
</Project>

SaasFeatureDefinitionProvider.cs

using CastandCrew.PSLWeb.SaasService.Localization;
using Volo.Abp.Features;
using Volo.Abp.Localization;
using Volo.Abp.Validation.StringValues;
namespace CastandCrew.PSLWeb.SaasService.Features
{
    public class SaasFeatureDefinitionProvider : FeatureDefinitionProvider
    {
        private static LocalizableString L(string name)
        {
            return LocalizableString.Create<SaasServiceResource>(name);
        }
        private static LocalizableStringInfo CreateLocalizableStringInfo(string name)
        {
            // Assuming you need the name and a string for localization
            return new LocalizableStringInfo("SaasService", name); // Adjust based on actual constructor
        }
        public override void Define(IFeatureDefinitionContext context)
        {
            var vendorFeatureGroup = context.AddGroup("SaasFeatureApp", L("SaasFeatureApp"));
            vendorFeatureGroup.AddFeature(
                "SaasFeatureApp.IsLegacyFeature",
                defaultValue: "false",
                displayName: L("IsLegacyFeature"),
                description: L("IsLegacyFeatureDescription"),
                valueType: new ToggleStringValueType(),
                true,
                true
            );
            vendorFeatureGroup.AddFeature(
              "SaasFeatureApp.ProjectType",
              defaultValue: "Commercial",  // Set the default value here
              displayName: L("ProjectType"),
              description: L("ProjectTypeDescription"),
              valueType: new SelectionStringValueType()
              {
                  ItemSource = new StaticSelectionStringValueItemSource(
                    new LocalizableSelectionStringValueItem()
                    {
                        Value = "Commercial",
                        DisplayText = CreateLocalizableStringInfo("Commercial")
                    },
                    new LocalizableSelectionStringValueItem()
                    {
                        Value = "Features",
                        DisplayText = CreateLocalizableStringInfo("Features")
                    },
                     new LocalizableSelectionStringValueItem()
                     {
                         Value = "Television",
                         DisplayText = CreateLocalizableStringInfo("Television")
                     },
                      new LocalizableSelectionStringValueItem()
                      {
                          Value = "LiveOrEvents",
                          DisplayText = CreateLocalizableStringInfo("LiveOrEvents")
                      }),
              },
               true,
               true
           );
        }
    }
}

We can't send code from official emails. It's straightforward, so there won't be any misunderstandings.

Hi Anjali, I gone thought the above URL, Still, I am getting 502 Undocumented Error: Bad Gateway

No error in the logs. but how can I share it since it's large in size?

Hello Anjali, I tried the same way but no luck. Could you please let me know how to upload Logs.

Hello @maliming You don't need a code project for this. Download the SAAS service from ABP.IO, add a new feature, and implement localization for it.

I am unable to share it by https://wetransfer.com/. Due to huge size around 1.9GB

Email sent

Thank you for the quick reply.

I followed the same steps and implemented the code before asking for help, but unfortunately, it did not resolve the issue.

As requested please find the below CastandCrew.PSLWeb.SaasService.Contracts.csproj file content.

Showing 1 to 10 of 10 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06