public static void SetService(IApplicationServices applicationServices) { lock (lockObject) { if (_helperContext == null) { _helperContext = new AppCoreHelper(); } _appServices = applicationServices; } }