Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 8d0b148

Browse files
dailycodingf2prateek
authored andcommitted
Replace all tab indents to space indents
1 parent 15c3986 commit 8d0b148

Some content is hidden

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

58 files changed

+2931
-2957
lines changed

Analytics/Analytics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace Segment
66
{
77
public class Analytics
88
{
9-
// REMINDER: don't forget to set Properties.AssemblyInfo.AssemblyVersion as well
10-
public static string VERSION = "3.3.1-alpha";
9+
// REMINDER: don't forget to set Properties.AssemblyInfo.AssemblyVersion as well
10+
public static string VERSION = "3.3.1-alpha";
1111

1212
/// <summary>
1313
/// Lock for thread-safety
@@ -37,7 +37,7 @@ public static void Initialize(string writeKey)
3737
/// Initialized the default Segment.io client with your API writeKey.
3838
/// </summary>
3939
/// <param name="writeKey"></param>
40-
public static void Initialize(string writeKey, Config config)
40+
public static void Initialize(string writeKey, Config config)
4141
{
4242
lock (padlock)
4343
{

Analytics/Client.cs

Lines changed: 506 additions & 506 deletions
Large diffs are not rendered by default.

Analytics/Config.cs

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -8,119 +8,119 @@ namespace Segment
88
/// <summary>
99
/// Config required to initialize the client
1010
/// </summary>
11-
public class Config
11+
public class Config
1212
{
13-
/// <summary>
14-
/// The REST API endpoint
15-
/// </summary>
16-
internal string Host { get; set; }
13+
/// <summary>
14+
/// The REST API endpoint
15+
/// </summary>
16+
internal string Host { get; set; }
1717

18-
internal string Proxy { get; set; }
18+
internal string Proxy { get; set; }
1919

20-
internal int MaxQueueSize { get; set; }
20+
internal int MaxQueueSize { get; set; }
2121

22-
internal int MaxBatchSize { get; set; }
22+
internal int MaxBatchSize { get; set; }
2323

24-
internal bool Async { get; set; }
24+
internal bool Async { get; set; }
2525

26-
internal bool CompressRequest { get; set; }
26+
internal bool CompressRequest { get; set; }
2727

28-
internal TimeSpan Timeout { get; set; }
28+
internal TimeSpan Timeout { get; set; }
2929

30-
public Config()
31-
{
32-
this.Host = Defaults.Host;
33-
this.Proxy = "";
34-
this.Timeout = Defaults.Timeout;
35-
this.MaxQueueSize = Defaults.MaxQueueCapacity;
36-
this.MaxBatchSize = Defaults.MaxBatchSize;
37-
this.Async = Defaults.Async;
38-
}
30+
public Config()
31+
{
32+
this.Host = Defaults.Host;
33+
this.Proxy = "";
34+
this.Timeout = Defaults.Timeout;
35+
this.MaxQueueSize = Defaults.MaxQueueCapacity;
36+
this.MaxBatchSize = Defaults.MaxBatchSize;
37+
this.Async = Defaults.Async;
38+
}
3939

40-
/// <summary>
41-
/// Set the API host server address, instead of default server "https://api.segment.io"
42-
/// </summary>
43-
/// <param name="host">Host server url</param>
44-
/// <returns></returns>
45-
public Config SetHost(string host)
46-
{
47-
this.Host = host;
48-
return this;
49-
}
40+
/// <summary>
41+
/// Set the API host server address, instead of default server "https://api.segment.io"
42+
/// </summary>
43+
/// <param name="host">Host server url</param>
44+
/// <returns></returns>
45+
public Config SetHost(string host)
46+
{
47+
this.Host = host;
48+
return this;
49+
}
5050

51-
/// <summary>
52-
/// Set the proxy server Uri
53-
/// </summary>
54-
/// <param name="proxy">Proxy server Uri</param>
55-
/// <returns></returns>
56-
public Config SetProxy(string proxy)
57-
{
58-
this.Proxy = proxy;
59-
return this;
60-
}
51+
/// <summary>
52+
/// Set the proxy server Uri
53+
/// </summary>
54+
/// <param name="proxy">Proxy server Uri</param>
55+
/// <returns></returns>
56+
public Config SetProxy(string proxy)
57+
{
58+
this.Proxy = proxy;
59+
return this;
60+
}
6161

62-
/// <summary>
63-
/// Sets the maximum amount of timeout on the HTTP request flushes to the server.
64-
/// </summary>
65-
/// <param name="timeout"></param>
66-
/// <returns></returns>
67-
public Config SetTimeout(TimeSpan timeout)
68-
{
69-
this.Timeout = timeout;
70-
return this;
71-
}
72-
73-
/// <summary>
74-
/// Sets the maximum amount of items that can be in the queue before no more are accepted.
75-
/// </summary>
76-
/// <param name="maxQueueSize"></param>
77-
/// <returns></returns>
78-
public Config SetMaxQueueSize(int maxQueueSize)
79-
{
80-
this.MaxQueueSize = maxQueueSize;
81-
return this;
82-
}
62+
/// <summary>
63+
/// Sets the maximum amount of timeout on the HTTP request flushes to the server.
64+
/// </summary>
65+
/// <param name="timeout"></param>
66+
/// <returns></returns>
67+
public Config SetTimeout(TimeSpan timeout)
68+
{
69+
this.Timeout = timeout;
70+
return this;
71+
}
72+
73+
/// <summary>
74+
/// Sets the maximum amount of items that can be in the queue before no more are accepted.
75+
/// </summary>
76+
/// <param name="maxQueueSize"></param>
77+
/// <returns></returns>
78+
public Config SetMaxQueueSize(int maxQueueSize)
79+
{
80+
this.MaxQueueSize = maxQueueSize;
81+
return this;
82+
}
8383

84-
/// <summary>
85-
/// Sets the maximum amount of messages to send per batch
86-
/// </summary>
87-
/// <param name="maxBatchSize"></param>
88-
/// <returns></returns>
89-
public Config SetMaxBatchSize(int maxBatchSize)
90-
{
91-
this.MaxBatchSize = maxBatchSize;
92-
return this;
93-
}
84+
/// <summary>
85+
/// Sets the maximum amount of messages to send per batch
86+
/// </summary>
87+
/// <param name="maxBatchSize"></param>
88+
/// <returns></returns>
89+
public Config SetMaxBatchSize(int maxBatchSize)
90+
{
91+
this.MaxBatchSize = maxBatchSize;
92+
return this;
93+
}
9494

95-
/// <summary>
96-
/// Sets whether the flushing to the server is synchronous or asynchronous.
97-
///
98-
/// True is the default and will allow your calls to Analytics.Client.Identify(...), Track(...), etc
99-
/// to return immediately and to be queued to be flushed on a different thread.
100-
///
101-
/// False is convenient for testing but should not be used in production. False will cause the
102-
/// HTTP requests to happen immediately.
103-
///
104-
/// </summary>
105-
/// <param name="async">True for async flushing, false for blocking flushing</param>
106-
/// <returns></returns>
107-
public Config SetAsync(bool async)
95+
/// <summary>
96+
/// Sets whether the flushing to the server is synchronous or asynchronous.
97+
///
98+
/// True is the default and will allow your calls to Analytics.Client.Identify(...), Track(...), etc
99+
/// to return immediately and to be queued to be flushed on a different thread.
100+
///
101+
/// False is convenient for testing but should not be used in production. False will cause the
102+
/// HTTP requests to happen immediately.
103+
///
104+
/// </summary>
105+
/// <param name="async">True for async flushing, false for blocking flushing</param>
106+
/// <returns></returns>
107+
public Config SetAsync(bool async)
108108
{
109-
this.Async = async;
109+
this.Async = async;
110110
return this;
111111
}
112112

113-
/// <summary>
114-
/// Sets the API request header uses GZip option.
115-
/// Enable this when the network is the bottleneck for your application (typically in client side applications).
116-
/// If useGZip is set, it compresses request content with GZip algorithm
117-
/// </summary>
118-
/// <param name="bCompress">True to compress request header, false for no compression</param>
119-
/// <returns></returns>
120-
public Config SetRequestCompression(bool bCompress)
121-
{
122-
this.CompressRequest = bCompress;
123-
return this;
124-
}
113+
/// <summary>
114+
/// Sets the API request header uses GZip option.
115+
/// Enable this when the network is the bottleneck for your application (typically in client side applications).
116+
/// If useGZip is set, it compresses request content with GZip algorithm
117+
/// </summary>
118+
/// <param name="bCompress">True to compress request header, false for no compression</param>
119+
/// <returns></returns>
120+
public Config SetRequestCompression(bool bCompress)
121+
{
122+
this.CompressRequest = bCompress;
123+
return this;
124+
}
125125
}
126126
}

Analytics/Defaults.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ public class Defaults
99
{
1010
public static string Host = "https://api.segment.io";
1111

12-
public static TimeSpan Timeout = TimeSpan.FromSeconds(5);
12+
public static TimeSpan Timeout = TimeSpan.FromSeconds(5);
1313

1414
public static int MaxQueueCapacity = 10000;
1515

1616
public static int MaxBatchSize = 20;
1717

18-
public static bool Async = true;
18+
public static bool Async = true;
1919
}
2020
}

Analytics/Exception/BadParameter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Text;
44

Analytics/Exception/NotInitializedException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Text;

0 commit comments

Comments
 (0)