Skip to content

Commit a0af862

Browse files
committed
Fix whitespace
1 parent 39476f1 commit a0af862

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+509
-510
lines changed

src/ServiceStack.Interfaces/ApiAllowableValuesAttribute.cs

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -9,59 +9,59 @@ namespace ServiceStack
99
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
1010
public class ApiAllowableValuesAttribute : AttributeBase
1111
{
12-
public ApiAllowableValuesAttribute(string name)
13-
{
14-
this.Name = name;
15-
}
16-
public ApiAllowableValuesAttribute(string name, int min, int max) : this(name)
17-
{
18-
Type = "RANGE";
19-
Min = min;
20-
Max = max;
21-
}
12+
public ApiAllowableValuesAttribute(string name)
13+
{
14+
this.Name = name;
15+
}
16+
public ApiAllowableValuesAttribute(string name, int min, int max) : this(name)
17+
{
18+
Type = "RANGE";
19+
Min = min;
20+
Max = max;
21+
}
2222

23-
public ApiAllowableValuesAttribute(string name, params string[] values)
24-
: this(name)
25-
{
26-
Type = "LIST";
27-
Values = values;
28-
}
23+
public ApiAllowableValuesAttribute(string name, params string[] values)
24+
: this(name)
25+
{
26+
Type = "LIST";
27+
Values = values;
28+
}
2929

30-
public ApiAllowableValuesAttribute(string name, Type enumType)
31-
: this(name)
32-
{
30+
public ApiAllowableValuesAttribute(string name, Type enumType)
31+
: this(name)
32+
{
3333
#if NETFX_CORE
3434
if (enumType.GetTypeInfo().IsEnum)
3535
#else
3636
if (enumType.IsEnum)
3737
#endif
3838
{
39-
Type = "LIST";
40-
Values = System.Enum.GetNames(enumType);
41-
}
42-
}
39+
Type = "LIST";
40+
Values = System.Enum.GetNames(enumType);
41+
}
42+
}
4343

44-
public ApiAllowableValuesAttribute(string name, Func<string[]> listAction)
45-
: this(name)
46-
{
47-
if (listAction != null)
48-
{
49-
Type = "LIST";
50-
Values = listAction();
51-
}
52-
}
44+
public ApiAllowableValuesAttribute(string name, Func<string[]> listAction)
45+
: this(name)
46+
{
47+
if (listAction != null)
48+
{
49+
Type = "LIST";
50+
Values = listAction();
51+
}
52+
}
5353
/// <summary>
5454
/// Gets or sets parameter name with which allowable values will be associated.
5555
/// </summary>
5656
public string Name { get; set; }
5757

58-
public string Type { get; set; }
58+
public string Type { get; set; }
5959

60-
public int? Min { get; set; }
60+
public int? Min { get; set; }
6161

62-
public int? Max { get; set; }
62+
public int? Max { get; set; }
6363

64-
public String[] Values { get; set; }
64+
public String[] Values { get; set; }
6565

6666
//TODO: should be implemented according to:
6767
//https://github.com/wordnik/swagger-core/wiki/datatypes

src/ServiceStack.Interfaces/CollectionTypes.cs

Lines changed: 100 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -7,105 +7,105 @@
77

88
namespace ServiceStack
99
{
10-
/*
11-
* Useful collection DTO's that provide pretty Xml output for collection types, e.g.
12-
*
13-
* ArrayOfIntId Ids { get; set; }
14-
* ... =>
15-
*
16-
* <Ids>
17-
* <Id>1</Id>
18-
* <Id>2</Id>
19-
* <Id>3</Id>
20-
* <Ids>
21-
*/
22-
23-
[CollectionDataContract(ItemName = "String")]
24-
public partial class ArrayOfString : List<string>
25-
{
26-
public ArrayOfString()
27-
{
28-
}
29-
30-
public ArrayOfString(IEnumerable<string> collection) : base(collection) { }
31-
public ArrayOfString(params string[] args) : base(args) { }
32-
}
33-
34-
[CollectionDataContract(ItemName = "Id")]
35-
public partial class ArrayOfStringId : List<string>
36-
{
37-
public ArrayOfStringId()
38-
{
39-
}
40-
41-
public ArrayOfStringId(IEnumerable<string> collection) : base(collection) { }
42-
public ArrayOfStringId(params string[] args) : base(args) { }
43-
}
44-
45-
[CollectionDataContract(ItemName = "Guid")]
46-
public partial class ArrayOfGuid : List<Guid>
47-
{
48-
public ArrayOfGuid()
49-
{
50-
}
51-
52-
public ArrayOfGuid(IEnumerable<Guid> collection) : base(collection) { }
53-
public ArrayOfGuid(params Guid[] args) : base(args) { }
54-
}
55-
56-
[CollectionDataContract(ItemName = "Id")]
57-
public partial class ArrayOfGuidId : List<Guid>
58-
{
59-
public ArrayOfGuidId()
60-
{
61-
}
62-
63-
public ArrayOfGuidId(IEnumerable<Guid> collection) : base(collection) { }
64-
public ArrayOfGuidId(params Guid[] args) : base(args) { }
65-
}
66-
67-
[CollectionDataContract(ItemName = "Long")]
68-
public partial class ArrayOfLong : List<long>
69-
{
70-
public ArrayOfLong()
71-
{
72-
}
73-
74-
public ArrayOfLong(IEnumerable<long> collection) : base(collection) { }
75-
public ArrayOfLong(params long[] args) : base(args) { }
76-
}
77-
78-
[CollectionDataContract(ItemName = "Id")]
79-
public partial class ArrayOfLongId : List<long>
80-
{
81-
public ArrayOfLongId()
82-
{
83-
}
84-
85-
public ArrayOfLongId(IEnumerable<long> collection) : base(collection) { }
86-
public ArrayOfLongId(params long[] args) : base(args) { }
87-
}
88-
89-
[CollectionDataContract(ItemName = "Int")]
90-
public partial class ArrayOfInt : List<int>
91-
{
92-
public ArrayOfInt()
93-
{
94-
}
95-
96-
public ArrayOfInt(IEnumerable<int> collection) : base(collection) { }
97-
public ArrayOfInt(params int[] args) : base(args) { }
98-
}
99-
100-
[CollectionDataContract(ItemName = "Id")]
101-
public partial class ArrayOfIntId : List<int>
102-
{
103-
public ArrayOfIntId ()
104-
{
105-
}
106-
107-
public ArrayOfIntId(IEnumerable<int> collection) : base(collection) { }
108-
public ArrayOfIntId(params int[] args) : base(args) { }
109-
}
10+
/*
11+
* Useful collection DTO's that provide pretty Xml output for collection types, e.g.
12+
*
13+
* ArrayOfIntId Ids { get; set; }
14+
* ... =>
15+
*
16+
* <Ids>
17+
* <Id>1</Id>
18+
* <Id>2</Id>
19+
* <Id>3</Id>
20+
* <Ids>
21+
*/
22+
23+
[CollectionDataContract(ItemName = "String")]
24+
public partial class ArrayOfString : List<string>
25+
{
26+
public ArrayOfString()
27+
{
28+
}
29+
30+
public ArrayOfString(IEnumerable<string> collection) : base(collection) { }
31+
public ArrayOfString(params string[] args) : base(args) { }
32+
}
33+
34+
[CollectionDataContract(ItemName = "Id")]
35+
public partial class ArrayOfStringId : List<string>
36+
{
37+
public ArrayOfStringId()
38+
{
39+
}
40+
41+
public ArrayOfStringId(IEnumerable<string> collection) : base(collection) { }
42+
public ArrayOfStringId(params string[] args) : base(args) { }
43+
}
44+
45+
[CollectionDataContract(ItemName = "Guid")]
46+
public partial class ArrayOfGuid : List<Guid>
47+
{
48+
public ArrayOfGuid()
49+
{
50+
}
51+
52+
public ArrayOfGuid(IEnumerable<Guid> collection) : base(collection) { }
53+
public ArrayOfGuid(params Guid[] args) : base(args) { }
54+
}
55+
56+
[CollectionDataContract(ItemName = "Id")]
57+
public partial class ArrayOfGuidId : List<Guid>
58+
{
59+
public ArrayOfGuidId()
60+
{
61+
}
62+
63+
public ArrayOfGuidId(IEnumerable<Guid> collection) : base(collection) { }
64+
public ArrayOfGuidId(params Guid[] args) : base(args) { }
65+
}
66+
67+
[CollectionDataContract(ItemName = "Long")]
68+
public partial class ArrayOfLong : List<long>
69+
{
70+
public ArrayOfLong()
71+
{
72+
}
73+
74+
public ArrayOfLong(IEnumerable<long> collection) : base(collection) { }
75+
public ArrayOfLong(params long[] args) : base(args) { }
76+
}
77+
78+
[CollectionDataContract(ItemName = "Id")]
79+
public partial class ArrayOfLongId : List<long>
80+
{
81+
public ArrayOfLongId()
82+
{
83+
}
84+
85+
public ArrayOfLongId(IEnumerable<long> collection) : base(collection) { }
86+
public ArrayOfLongId(params long[] args) : base(args) { }
87+
}
88+
89+
[CollectionDataContract(ItemName = "Int")]
90+
public partial class ArrayOfInt : List<int>
91+
{
92+
public ArrayOfInt()
93+
{
94+
}
95+
96+
public ArrayOfInt(IEnumerable<int> collection) : base(collection) { }
97+
public ArrayOfInt(params int[] args) : base(args) { }
98+
}
99+
100+
[CollectionDataContract(ItemName = "Id")]
101+
public partial class ArrayOfIntId : List<int>
102+
{
103+
public ArrayOfIntId()
104+
{
105+
}
106+
107+
public ArrayOfIntId(IEnumerable<int> collection) : base(collection) { }
108+
public ArrayOfIntId(params int[] args) : base(args) { }
109+
}
110110

111111
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
namespace ServiceStack.Configuration
22
{
3-
/// <summary>
4-
/// Allow delegation of dependencies to other IOC's
5-
/// </summary>
6-
public interface IContainerAdapter : IResolver
7-
{
8-
/// <summary>
9-
/// Resolve Constructor Dependency
10-
/// </summary>
11-
/// <typeparam name="T"></typeparam>
12-
/// <returns></returns>
13-
T Resolve<T>();
14-
}
3+
/// <summary>
4+
/// Allow delegation of dependencies to other IOC's
5+
/// </summary>
6+
public interface IContainerAdapter : IResolver
7+
{
8+
/// <summary>
9+
/// Resolve Constructor Dependency
10+
/// </summary>
11+
/// <typeparam name="T"></typeparam>
12+
/// <returns></returns>
13+
T Resolve<T>();
14+
}
1515
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
namespace ServiceStack.Configuration
22
{
3-
public interface IResolver
4-
{
5-
/// <summary>
6-
/// Resolve a dependency from the AppHost's IOC
7-
/// </summary>
8-
/// <typeparam name="T"></typeparam>
9-
/// <returns></returns>
10-
T TryResolve<T>();
11-
}
3+
public interface IResolver
4+
{
5+
/// <summary>
6+
/// Resolve a dependency from the AppHost's IOC
7+
/// </summary>
8+
/// <typeparam name="T"></typeparam>
9+
/// <returns></returns>
10+
T TryResolve<T>();
11+
}
1212
}

src/ServiceStack.Interfaces/Configuration/ITypeFactory.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace ServiceStack.Configuration
44
{
5-
public interface ITypeFactory
6-
{
7-
object CreateInstance(Type type);
8-
}
5+
public interface ITypeFactory
6+
{
7+
object CreateInstance(Type type);
8+
}
99
}

0 commit comments

Comments
 (0)