Beispiel #1
0
 /// <summary>
 /// Gets the platform.
 /// </summary>
 /// <param name="actionName">Name of the action.</param>
 /// <returns>Current XafDelta platform</returns>
 public IXafDeltaPlatform GetPlatform(string actionName)
 {
     var args = new GetPlatformArgs();
     XafDeltaModule.Instance.OnGetPlatform(args);
     if (args.XafDeltaPlatform == null) throw new ApplicationException("XafDeltaPlatform is null");
     if (args.XafDeltaPlatform.ActionIsBusy(actionName)) args.XafDeltaPlatform = null;
     return args.XafDeltaPlatform;
 }
Beispiel #2
0
        /// <summary>
        /// Called when get platform.
        /// </summary>
        /// <param name="e">The e.</param>
        public void OnGetPlatform(GetPlatformArgs e)
        {
            var handler = GetPlatform;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Gets the platform.
        /// </summary>
        /// <param name="actionName">Name of the action.</param>
        /// <returns>Current XafDelta platform</returns>
        public IXafDeltaPlatform GetPlatform(string actionName)
        {
            var args = new GetPlatformArgs();

            XafDeltaModule.Instance.OnGetPlatform(args);
            if (args.XafDeltaPlatform == null)
            {
                throw new ApplicationException("XafDeltaPlatform is null");
            }
            if (args.XafDeltaPlatform.ActionIsBusy(actionName))
            {
                args.XafDeltaPlatform = null;
            }
            return(args.XafDeltaPlatform);
        }
Beispiel #4
0
 /// <summary>
 /// Called when get platform.
 /// </summary>
 /// <param name="e">The e.</param>
 public void OnGetPlatform(GetPlatformArgs e)
 {
     var handler = GetPlatform;
     if (handler != null) handler(this, e);
 }