コード例 #1
0
 public CodeParameterImpl(
     [NotNull] DteImplementation implementation,
     [NotNull] CodeElementModel model,
     [CanBeNull] object parent
     ) : base(implementation, model, parent)
 {
 }
コード例 #2
0
 protected CodeTypeBase(
     [NotNull] DteImplementation implementation,
     [NotNull] CodeElementModel model,
     [CanBeNull] object parent
     ) : base(implementation, model, parent)
 {
 }
コード例 #3
0
        public object GetService(Type serviceType)
        {
            if (serviceType == typeof(DTE) || serviceType == typeof(DTE2))
            {
                if (CachedDteImplementation != null)
                {
                    return(CachedDteImplementation);
                }
                string rawPort = Environment.GetEnvironmentVariable("T4_ENVDTE_CLIENT_PORT");
                if (rawPort == null)
                {
                    return(null);
                }
                if (!int.TryParse(rawPort, out int port))
                {
                    return(null);
                }
                var manager        = new ConnectionManager(Lifetime, port);
                var implementation = new DteImplementation(manager.Model);
                CachedDteImplementation = implementation;
                return(implementation);
            }

            return(null);
        }
コード例 #4
0
 public CodeClassImpl(
     [NotNull] DteImplementation implementation,
     [NotNull] CodeElementModel model,
     object parent
     ) : base(implementation, model, parent)
 {
 }
コード例 #5
0
 public ProjectsImplementation(
     [NotNull] DteImplementation implementation,
     [NotNull, ItemNotNull] IReadOnlyList <Rider.Model.ProjectModel> projectModels
     )
 {
     Implementation = implementation;
     ProjectModels  = projectModels;
 }
コード例 #6
0
 public FileCodeModelImpl(
     [NotNull] DteImplementation dteImplementation,
     [NotNull] ProjectItemImplementation parent
     )
 {
     DteImplementation = dteImplementation;
     MyParent          = parent;
 }
コード例 #7
0
 public ProjectItemImplementation(
     [NotNull] DteImplementation implementation,
     [NotNull] ProjectItemModel projectItemModel
     )
 {
     Implementation   = implementation;
     ProjectItemModel = projectItemModel;
 }
コード例 #8
0
 public ProjectItemsImplementation(
     DteImplementation implementation,
     List <ProjectItemModel> projectItemModels,
     object parent)
 {
     Implementation    = implementation;
     ProjectItemModels = projectItemModels;
     Parent            = parent;
 }
コード例 #9
0
 public ProjectImplementation(
     [NotNull] DteImplementation implementation,
     [NotNull] Rider.Model.ProjectModel projectModel,
     [CanBeNull] ProjectItem parentProjectItem = null
     )
 {
     Implementation    = implementation;
     ProjectModel      = projectModel;
     ParentProjectItem = parentProjectItem;
 }
コード例 #10
0
 protected CodeElementBase(
     [NotNull] DteImplementation implementation,
     [NotNull] CodeElementModel model,
     [CanBeNull] object parent
     )
 {
     Implementation         = implementation;
     Model                  = model;
     CachedParent           = parent;
     EnvDTEElementRegistrar = new EnvDTEElementRegistrar(Implementation);
 }
コード例 #11
0
 internal SolutionImplementation([NotNull] DteImplementation dte) => Implementation = dte;
コード例 #12
0
 public EnvDTEElementRegistrar([NotNull] DteImplementation implementation) => Implementation = implementation;