private IFeatureClass OpenTrackingServerConnection()
    {
      IWorkspaceFactory amsWorkspaceFactory = new AMSWorkspaceFactory();

      IPropertySet connectionProperties = CreateTrackingServerConnectionProperties();
      IAMSWorkspace amsWorkspace = amsWorkspaceFactory.Open(connectionProperties, 0) as IAMSWorkspace;
      IFeatureClass featureClass = amsWorkspace.OpenFeatureClass(TS_SERVICE_NAME);

      return featureClass;
    }
        private IFeatureClass OpenTrackingServerConnection()
        {
            IWorkspaceFactory amsWorkspaceFactory = new AMSWorkspaceFactory();

            IPropertySet  connectionProperties = CreateTrackingServerConnectionProperties();
            IAMSWorkspace amsWorkspace         = amsWorkspaceFactory.Open(connectionProperties, 0) as IAMSWorkspace;
            IFeatureClass featureClass         = amsWorkspace.OpenFeatureClass(TS_SERVICE_NAME);

            return(featureClass);
        }