internal IHostedServiceType()
            : base("Microsoft.Extensions.Hosting.IHostedService")
        {
            var parameters = ImmutableArray.Create(QualifiedParameter.Create(new QualifiedType("System.Threading.CancellationToken")));

            this.StartAsync = new QualifiedOverload(this, nameof(this.StartAsync), parameters);
            this.StopAsync  = new QualifiedOverload(this, nameof(this.StopAsync), parameters);
        }
Пример #2
0
 internal TaskType()
     : base("System.Threading.Tasks.Task")
 {
     this.FromResult     = new QualifiedMethod(this, nameof(this.FromResult));
     this.Run            = new QualifiedMethod(this, nameof(this.Run));
     this.RunOfT         = new QualifiedMethod(this, $"{nameof(this.Run)}`1");
     this.ConfigureAwait = new QualifiedMethod(this, nameof(this.ConfigureAwait));
     this.CompletedTask  = new QualifiedProperty(this, nameof(this.CompletedTask));
 }
Пример #3
0
 internal EnumerableType()
     : base("System.Linq.Enumerable")
 {
     this.Aggregate          = new QualifiedMethod(this, nameof(this.Aggregate));
     this.All                = new QualifiedMethod(this, nameof(this.All));
     this.Any                = new QualifiedMethod(this, nameof(this.Any));
     this.AsEnumerable       = new QualifiedMethod(this, nameof(this.AsEnumerable));
     this.Average            = new QualifiedMethod(this, nameof(this.Average));
     this.Cast               = new QualifiedMethod(this, nameof(this.Cast));
     this.Concat             = new QualifiedMethod(this, nameof(this.Concat));
     this.Contains           = new QualifiedMethod(this, nameof(this.Contains));
     this.Count              = new QualifiedMethod(this, nameof(this.Count));
     this.DefaultIfEmpty     = new QualifiedMethod(this, nameof(this.DefaultIfEmpty));
     this.Distinct           = new QualifiedMethod(this, nameof(this.Distinct));
     this.ElementAt          = new QualifiedMethod(this, nameof(this.ElementAt));
     this.ElementAtOrDefault = new QualifiedMethod(this, nameof(this.ElementAtOrDefault));
     this.Empty              = new QualifiedMethod(this, nameof(this.Empty));
     this.Except             = new QualifiedMethod(this, nameof(this.Except));
     this.First              = new QualifiedMethod(this, nameof(this.First));
     this.FirstOrDefault     = new QualifiedMethod(this, nameof(this.FirstOrDefault));
     this.GroupBy            = new QualifiedMethod(this, nameof(this.GroupBy));
     this.GroupJoin          = new QualifiedMethod(this, nameof(this.GroupJoin));
     this.Intersect          = new QualifiedMethod(this, nameof(this.Intersect));
     this.Join               = new QualifiedMethod(this, nameof(this.Join));
     this.Last               = new QualifiedMethod(this, nameof(this.Last));
     this.LastOrDefault      = new QualifiedMethod(this, nameof(this.LastOrDefault));
     this.LongCount          = new QualifiedMethod(this, nameof(this.LongCount));
     this.Max                = new QualifiedMethod(this, nameof(this.Max));
     this.Min                = new QualifiedMethod(this, nameof(this.Min));
     this.OfType             = new QualifiedMethod(this, nameof(this.OfType));
     this.OrderBy            = new QualifiedMethod(this, nameof(this.OrderBy));
     this.OrderByDescending  = new QualifiedMethod(this, nameof(this.OrderByDescending));
     this.Repeat             = new QualifiedMethod(this, nameof(this.Repeat));
     this.Reverse            = new QualifiedMethod(this, nameof(this.Reverse));
     this.Select             = new QualifiedMethod(this, nameof(this.Select));
     this.SelectMany         = new QualifiedMethod(this, nameof(this.SelectMany));
     this.SequenceEqual      = new QualifiedMethod(this, nameof(this.SequenceEqual));
     this.Single             = new QualifiedMethod(this, nameof(this.Single));
     this.SingleOrDefault    = new QualifiedMethod(this, nameof(this.SingleOrDefault));
     this.Skip               = new QualifiedMethod(this, nameof(this.Skip));
     this.SkipWhile          = new QualifiedMethod(this, nameof(this.SkipWhile));
     this.Sum                = new QualifiedMethod(this, nameof(this.Sum));
     this.Take               = new QualifiedMethod(this, nameof(this.Take));
     this.TakeWhile          = new QualifiedMethod(this, nameof(this.TakeWhile));
     this.ThenBy             = new QualifiedMethod(this, nameof(this.ThenBy));
     this.ThenByDescending   = new QualifiedMethod(this, nameof(this.ThenByDescending));
     this.ToArray            = new QualifiedMethod(this, nameof(this.ToArray));
     this.ToDictionary       = new QualifiedMethod(this, nameof(this.ToDictionary));
     this.ToList             = new QualifiedMethod(this, nameof(this.ToList));
     this.ToLookup           = new QualifiedMethod(this, nameof(this.ToLookup));
     this.Union              = new QualifiedMethod(this, nameof(this.Union));
     this.Where              = new QualifiedMethod(this, nameof(this.Where));
     this.Zip                = new QualifiedMethod(this, nameof(this.Zip));
 }
Пример #4
0
 internal IEnumerableType()
     : base("System.Collections.IEnumerable")
 {
     this.GetEnumerator = new QualifiedMethod(this, nameof(this.GetEnumerator));
 }
Пример #5
0
 internal GCType()
     : base("System.GC")
 {
     this.SuppressFinalize = new QualifiedMethod(this, nameof(this.SuppressFinalize));
 }
Пример #6
0
 internal HostingAbstractionsHostExtensionsType()
     : base("Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions")
 {
     this.Run      = new QualifiedMethod(this, nameof(this.Run));
     this.RunAsync = new QualifiedMethod(this, nameof(this.RunAsync));
 }
 internal WinformsControlType()
     : base("System.Windows.Forms.Control")
 {
     this.Show = new QualifiedMethod(this, "Show");
 }
 internal HttpResponseMessageType()
     : base("System.Net.Http.HttpResponseMessage")
 {
     this.EnsureSuccessStatusCode = new QualifiedMethod(this, nameof(this.EnsureSuccessStatusCode));
 }
Пример #9
0
 internal CompositeDisposableType()
     : base("System.Reactive.Disposables.CompositeDisposable")
 {
     this.Add = new QualifiedMethod(this, nameof(this.Add));
 }
 internal DisposableMixins()
     : base("System.Reactive.Disposables.DisposableMixins")
 {
     this.DisposeWith = new QualifiedMethod(this, nameof(this.DisposeWith));
 }
 internal ResourceManagerType()
     : base("System.Resources.ResourceManager")
 {
     this.GetStream      = new QualifiedMethod(this, nameof(this.GetStream));
     this.GetResourceSet = new QualifiedMethod(this, nameof(this.GetResourceSet));
 }
Пример #12
0
 internal DisposableType()
     : base("System.IDisposable")
 {
     this.Dispose = new QualifiedMethod(this, nameof(this.Dispose));
 }
Пример #13
0
 internal IListType()
     : base("System.Collections.IList")
 {
     this.Add    = new QualifiedMethod(this, nameof(this.Add));
     this.Remove = new QualifiedMethod(this, nameof(this.Remove));
 }
Пример #14
0
 internal RxDisposableType()
     : base("System.Reactive.Disposables.Disposable")
 {
     this.Create = new QualifiedMethod(this, nameof(this.Create));
     this.Empty  = new QualifiedProperty(this, nameof(this.Empty));
 }
Пример #15
0
 internal TupleType()
     : base("System.Tuple")
 {
     this.Create = new QualifiedMethod(this, nameof(this.Create));
 }
 internal IAsyncDisposableType()
     : base("System.IAsyncDisposable")
 {
     this.DisposeAsync = new QualifiedMethod(this, nameof(this.DisposeAsync));
 }
 public IEnumerableOfTType()
     : base("System.Collections.Generic.IEnumerable`1")
 {
     this.GetEnumerator = new QualifiedMethod(this, nameof(this.GetEnumerator));
 }