Files
BusinessMgr-2019/SaBusMgrStandardBase/Base/Core/ISbmInstanceConfig.cs
T

57 lines
1.9 KiB
C#

using Sarand.BusinessMgr.Net.Standard.Base.App;
using Sarand.Net.Standard.Base.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sarand.BusinessMgr.Net.Standard.Base.Core
{
//=======================================================================
/// <summary>
/// Defines a range of application options/rules specific to a BusinessMgr instance.
/// <para>- Web application retrieves this information from the Item Params belonging to the Instance defined in the Control database.</para>
/// <para>- Legacy desktop application implements a named 'Console' (each in a separate library and loaded at runtime) for each specific instance.</para>
/// </summary>
public interface ISbmInstanceConfig
{
//-------------------------------------------------------------------
// Application options.
bool AllowApplicationOption(Sbm.ConfigOption option, bool defaultResponse);
//-------------------------------------------------------------------
// Contacts.
/// <summary>
/// Supported affiliate types.
/// </summary>
bool AllowAffiliateType(Sbm.AffiliateType type, bool defaultResponse);
/// <summary>
/// Supported Association types.
/// </summary>
bool AllowAssociationType(Sbm.AssociationType type, bool defaultResponse);
//-------------------------------------------------------------------
// Transactions.
/// <summary>
/// Supported Transaction types.
/// </summary>
bool AllowTransactionType(Sbm.TransactionType type, bool defaultResponse);
//-------------------------------------------------------------------
// Interfaces.
/// <summary>
/// Whether the Interface Category is allowed.
/// </summary>
bool AllowInterfaceCategory(SaInterfaceCategory interfaceCategory, bool defaultResponse);
//-------------------------------------------------------------------
}
//=======================================================================
}