Adding private constructor

- Adding private constructor
- some spacing for regions
This commit is contained in:
FlorianDahn 2022-01-06 16:54:50 +01:00
parent 19856ab044
commit 8303b0c87f

View File

@ -29,6 +29,11 @@ namespace TelegramBotBase.Builder
IMessageLoopFactory _messageloopfactory = null;
private BotBaseBuilder()
{
}
public static IAPIKeySelectionStage Create()
{
return new BotBaseBuilder();
@ -128,6 +133,7 @@ namespace TelegramBotBase.Builder
#endregion
#region "Step 3 (Start Form/Factory)"
public INetworkingSelectionStage WithStartForm(Type startFormClass)
@ -151,6 +157,7 @@ namespace TelegramBotBase.Builder
#endregion
#region "Step 4 (Network Settings)"
public IBotCommandsStage WithProxy(string proxyAddress)
@ -195,6 +202,7 @@ namespace TelegramBotBase.Builder
#endregion
#region "Step 5 (Bot Commands)"
public ISessionSerializationStage NoCommands()
@ -226,6 +234,7 @@ namespace TelegramBotBase.Builder
#endregion
#region "Step 6 (Serialization)"
public ILanguageSelectionStage NoSerialization()
@ -260,6 +269,7 @@ namespace TelegramBotBase.Builder
#endregion
#region "Step 7 (Language)"
public IBuildingStage DefaultLanguage()
@ -287,6 +297,7 @@ namespace TelegramBotBase.Builder
#endregion
public BotBase Build()
{
var bb = new BotBase();