/// <summary> Holds the name of the host.</summary>
privatestringHostName{get;}
/// <summary> Holds value wether site caching is on or off.</summary>
boolIsSiteCachingOn{get;}
/// <summary> Constructs AGB view model</summary>
/// <param name="isSiteCachingOn">Holds value wether site caching is on or off.</param>
/// <param name="resourceProvider">Delegate to get an an embedded html ressource. Used as fallback if download from web page does not work and cache is empty.</param>
/// <param name="p_oViewService">View service to close page.</param>
publicAgbViewModel(
stringhostName,
boolisSiteCachingOn,
Func<string,string>resourceProvider,
IViewServicep_oViewService)
{
HostName=hostName;
IsSiteCachingOn=isSiteCachingOn;
ViewService=p_oViewService
??thrownewArgumentException($"Can not instantiate {typeof(WhatsNewViewModel)}-object. No view available.");
ResourceProvider=resourceProvider
??thrownewArgumentException($"Can not instantiate {typeof(WhatsNewViewModel)}-object. No ressource provider availalbe.");
}
/// <summary> Gets the platfrom specific prefix. </summary>