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 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()); }