Skip to content

Commit 5a23088

Browse files
committed
Add job args base
1 parent b500b8b commit 5a23088

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
using DeploySoftware.LaunchPad.Core.BackgroundProcess;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.ComponentModel;
5+
using System.ComponentModel.DataAnnotations;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Xml.Serialization;
10+
11+
namespace DeploySoftware.LaunchPad.Core.Abp.BackgroundProcess
12+
{
13+
[Serializable]
14+
public abstract partial class LaunchPadBackgroundJobArgsBase : ICanBeLaunchPadBackgroundJobArgs
15+
{
16+
17+
[Required]
18+
[DataObjectField(true)]
19+
[XmlAttribute]
20+
public virtual string Id { get; set; }
21+
22+
[DataObjectField(true)]
23+
[XmlAttribute]
24+
public virtual string Name { get; set; }
25+
26+
[DataObjectField(false)]
27+
[XmlAttribute]
28+
public virtual string DescriptionShort { get; set; } = string.Empty;
29+
30+
[DataObjectField(false)]
31+
[XmlAttribute]
32+
public virtual string DescriptionFull { get; set; } = string.Empty;
33+
34+
35+
[DataObjectField(false)]
36+
[XmlAttribute]
37+
public virtual string Chron { get; set; }
38+
39+
protected LaunchPadBackgroundJobArgsBase()
40+
{
41+
Id = Guid.NewGuid().ToString();
42+
Name = Id;
43+
}
44+
45+
protected LaunchPadBackgroundJobArgsBase(string id)
46+
{
47+
Id = id;
48+
Name = Id;
49+
}
50+
51+
52+
protected LaunchPadBackgroundJobArgsBase(string id, string name, string chron)
53+
{
54+
Id = id;
55+
Name = name;
56+
Chron = chron;
57+
}
58+
59+
}
60+
}

src/DeploySoftware.LaunchPad.Core.Abp/DeploySoftware.LaunchPad.Core.Abp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1212
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1313
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
14-
<Version>8.1.1</Version>
14+
<Version>8.1.2</Version>
1515
<Description>Shared code for LaunchPad framework using AspnetBoilerplate.</Description>
1616
<Copyright>2018-2023 Deploy Software Solutions, inc.</Copyright>
1717
<PackageLicenseFile>LICENSE</PackageLicenseFile>

0 commit comments

Comments
 (0)