public virtual Messages.SingleValue GetVersion(Messages.Blank request)
        {
            if (serverVersion == null)
            {
                // Retrieve and cache the version
                lock (versionLockObject)
                {
                    if (serverVersion == null)
                    {
                        serverVersion = Assembly.GetExecutingAssembly().GetName().Version;
                    }
                }
            }

            // Return the version
            var response = new Messages.SingleValue(serverVersion.ToString());

            return(response);
        }
Exemple #2
0
        public virtual Messages.SingleValue GetVersion(Messages.Blank request)
        {
            if (serverVersion == null)
            {
                // Retrieve and cache the version
                lock (versionLockObject)
                {
                    if (serverVersion == null)
                    {
                        serverVersion = Assembly.GetExecutingAssembly().GetName().Version;
                    }
                }
            }

            // Return the version
            var response = new Messages.SingleValue(serverVersion.ToString());
            return response;
        }
 public Messages.Blank TestAction(Messages.SingleValue message)
 {
     this.WasInvoked = true;
     return(new Messages.Blank());
 }