C# Class WingTipTickets.WingtipTicketApp

Inheritance: System.Web.HttpApplication
Mostrar archivo Open project: Microsoft/WingTipTickets Class Usage Examples

Public Properties

Property Type Description
Config AppConfig
SearchIndexClient Microsoft.Azure.Search.SearchIndexClient
_lock object

Public Methods

Method Description
CreateRecommendationSqlConnection ( ) : SqlConnection
CreateTenantConnectionDatabase1 ( ) : SqlConnection
CreateTenantConnectionDatabase2 ( ) : SqlConnection
GetRecommendationConnectionString ( ) : string
GetTenantConnectionString ( string database ) : string
InitializeConfig ( ) : bool
InitializeSearchService ( ) : void

Protected Methods

Method Description
Application_Start ( ) : void

Private Methods

Method Description
BuildConnectionString ( string databaseServer, string database, string username, string password, bool runningInDev ) : string
CreateIndex ( Microsoft.Azure.Search.SearchServiceClient searchServiceClient ) : void
CreateIndexer ( Microsoft.Azure.Search.SearchServiceClient searchServiceClient ) : void
ReadAppConfig ( ) : AppConfig

Method Details

Application_Start() protected method

protected Application_Start ( ) : void
return void

CreateRecommendationSqlConnection() public static method

public static CreateRecommendationSqlConnection ( ) : SqlConnection
return System.Data.SqlClient.SqlConnection

CreateTenantConnectionDatabase1() public static method

public static CreateTenantConnectionDatabase1 ( ) : SqlConnection
return System.Data.SqlClient.SqlConnection

CreateTenantConnectionDatabase2() public static method

public static CreateTenantConnectionDatabase2 ( ) : SqlConnection
return System.Data.SqlClient.SqlConnection

GetRecommendationConnectionString() public static method

public static GetRecommendationConnectionString ( ) : string
return string

GetTenantConnectionString() public static method

public static GetTenantConnectionString ( string database ) : string
database string
return string

InitializeConfig() public static method

public static InitializeConfig ( ) : bool
return bool

InitializeSearchService() public static method

public static InitializeSearchService ( ) : void
return void

Property Details

Config public_oe static_oe property

public static AppConfig,WingTipTickets Config
return AppConfig

SearchIndexClient public_oe static_oe property

public static SearchIndexClient,Microsoft.Azure.Search SearchIndexClient
return Microsoft.Azure.Search.SearchIndexClient

_lock public_oe static_oe property

public static object _lock
return object