当前位置: 首页>>代码示例>>C#>>正文


C# IApiConnection类代码示例

本文整理汇总了C#中IApiConnection的典型用法代码示例。如果您正苦于以下问题:C# IApiConnection类的具体用法?C# IApiConnection怎么用?C# IApiConnection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IApiConnection类属于命名空间,在下文中一共展示了IApiConnection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IssuesClient

 public IssuesClient(IApiConnection apiConnection) : base(apiConnection)
 {
     Assignee = new AssigneesClient(apiConnection);
     Events = new IssuesEventsClient(apiConnection);
     Milestone = new MilestonesClient(apiConnection);
     Comment = new IssueCommentsClient(apiConnection);
 }
开发者ID:rahulvramesh,项目名称:octokit.net,代码行数:7,代码来源:IssuesClient.cs

示例2: EnterpriseClient

 /// <summary>
 /// Instantiates a new GitHub Enterprise API client.
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public EnterpriseClient(IApiConnection apiConnection) : base(apiConnection)
 {
     AdminStats = new EnterpriseAdminStatsClient(apiConnection);
     License = new EnterpriseLicenseClient(apiConnection);
     Organization = new EnterpriseOrganizationClient(apiConnection);
     SearchIndexing = new EnterpriseSearchIndexingClient(apiConnection);
 }
开发者ID:nikolaevwal,项目名称:octokit.net,代码行数:11,代码来源:EnterpriseClient.cs

示例3: ActivitiesClient

 /// <summary>
 /// Instantiate a new GitHub Activities API client.
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public ActivitiesClient(IApiConnection apiConnection)
     : base(apiConnection)
 {
     Events = new EventsClient(apiConnection);
     Starring = new StarredClient(apiConnection);
     Watching = new WatchedClient(apiConnection);
 }
开发者ID:ravipatel3334,项目名称:octokit.net,代码行数:11,代码来源:ActivitiesClient.cs

示例4: HipChatClient

 public HipChatClient(IApiConnection apiConnection) : base(apiConnection)
 {
   Rooms =new RoomsClient(apiConnection);
   Users = new UsersClient(apiConnection);
   Emoticons = new EmoticonsClient(apiConnection);
   Capabilities = new CapabilitiesClient(apiConnection);
 }
开发者ID:aolszowka,项目名称:hipchat.net,代码行数:7,代码来源:HipChatClient.cs

示例5: ApiClient

        /// <summary>
        /// Initializes a new API client.
        /// </summary>
        /// <param name="apiConnection">The client's connection</param>
        protected ApiClient(IApiConnection apiConnection)
        {
            Ensure.ArgumentNotNull(apiConnection, "apiConnection");

            ApiConnection = apiConnection;
            Connection = apiConnection.Connection;
        }
开发者ID:sdl,项目名称:groupsharekit.net,代码行数:11,代码来源:ApiClient.cs

示例6: UsersClient

 /// <summary>
 /// Instantiates a new GitHub Users API client.
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public UsersClient(IApiConnection apiConnection) : base(apiConnection)
 {
     Email = new UserEmailsClient(apiConnection);
     Followers = new FollowersClient(apiConnection);
     Keys = new UserKeysClient(apiConnection);
     Administration = new UserAdministrationClient(apiConnection);
 }
开发者ID:KonstantinDavidov,项目名称:octokit.net,代码行数:11,代码来源:UsersClient.cs

示例7: RepositoriesClient

        /// <summary>
        /// Initializes a new GitHub Repos API client.
        /// </summary>
        /// <param name="apiConnection">An API connection</param>
        public RepositoriesClient(IApiConnection apiConnection) : base(apiConnection)
        {
            Status = new CommitStatusClient(apiConnection);
            Hooks = new RepositoryHooksClient(apiConnection);
            Forks = new RepositoryForksClient(apiConnection);
#pragma warning disable CS0618 // Type or member is obsolete
            RepoCollaborators = new RepoCollaboratorsClient(apiConnection);
#pragma warning restore CS0618 // Type or member is obsolete
            Collaborator = new RepoCollaboratorsClient(apiConnection);
            Statistics = new StatisticsClient(apiConnection);
            Deployment = new DeploymentsClient(apiConnection);
            PullRequest = new PullRequestsClient(apiConnection);
#pragma warning disable CS0618 // Type or member is obsolete
            RepositoryComments = new RepositoryCommentsClient(apiConnection);
#pragma warning restore CS0618 // Type or member is obsolete
            Comment = new RepositoryCommentsClient(apiConnection);
#pragma warning disable CS0618 // Type or member is obsolete
            Commits = new RepositoryCommitsClient(apiConnection);
#pragma warning restore CS0618 // Type or member is obsolete
            Commit = new RepositoryCommitsClient(apiConnection);
            Release = new ReleasesClient(apiConnection);
            DeployKeys = new RepositoryDeployKeysClient(apiConnection);
            Merging = new MergingClient(apiConnection);
            Content = new RepositoryContentsClient(apiConnection);
            Page = new RepositoryPagesClient(apiConnection);
        }
开发者ID:RadicalLove,项目名称:octokit.net,代码行数:30,代码来源:RepositoriesClient.cs

示例8: ReactionsClient

 /// <summary>
 /// Instantiates a new GitHub Reactions API client
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public ReactionsClient(IApiConnection apiConnection)
     : base(apiConnection)
 {
     CommitComment = new CommitCommentReactionsClient(apiConnection);
     Issue = new IssueReactionsClient(apiConnection);
     IssueComment = new IssueCommentReactionsClient(apiConnection);
     PullRequestReviewComment = new PullRequestReviewCommentReactionsClient(apiConnection);
 }
开发者ID:RadicalLove,项目名称:octokit.net,代码行数:12,代码来源:ReactionsClient.cs

示例9: RepositoriesClient

 /// <summary>
 /// Initializes a new GitHub Repos API client.
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public RepositoriesClient(IApiConnection apiConnection) : base(apiConnection)
 {
     CommitStatus = new CommitStatusClient(apiConnection);
     RepoCollaborators = new RepoCollaboratorsClient(apiConnection);
     Statistics = new StatisticsClient(apiConnection);
     Deployment = new DeploymentsClient(apiConnection);
     PullRequest = new PullRequestsClient(apiConnection);
 }
开发者ID:Therzok,项目名称:octokit.net,代码行数:12,代码来源:RepositoriesClient.cs

示例10: EntityController

        private readonly string _keyName; // Name of the field that identifies the entity

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Creates an instance of EntityController
        /// </summary>
        /// <param name="entity">An instance of an Entity that must be managed</param>
        /// <param name="keyName">Name of the keyname field of the entity (mostly ID)</param>
        /// <param name="identifier">Name of the identifier field of the entity (mostly ID)</param>
        /// <param name="connection">Instance of IApiConnection to connect to the specific part of the API</param>
        /// <param name="entityControllerDelegate">Delegate that gets the entity controller</param>
        public EntityController(object entity, string keyName, string identifier, IApiConnection connection, GetEntityController entityControllerDelegate)
        {
            _connection = connection;
            _keyName = keyName;
            _identifier = identifier;
            OriginalEntity = Clone(entity);
            _entityControllerDelegate = entityControllerDelegate;
        }
开发者ID:nvoskuilen,项目名称:ClientSDK,代码行数:22,代码来源:EntityController.cs

示例11: GitDatabaseClient

 public GitDatabaseClient(IApiConnection apiConnection) 
     : base(apiConnection)
 {
     Blob = new BlobsClient(apiConnection);
     Tree = new TreesClient(apiConnection);
     Tag = new TagsClient(apiConnection);
     Commit = new CommitsClient(apiConnection);
     Reference = new ReferencesClient(apiConnection);
 }
开发者ID:richardkundl,项目名称:octokit.net,代码行数:9,代码来源:GitDatabaseClient.cs

示例12: ActivitiesClient

 /// <summary>
 /// Instantiate a new GitHub Activities API client.
 /// </summary>
 /// <param name="apiConnection">An API connection</param>
 public ActivitiesClient(IApiConnection apiConnection)
     : base(apiConnection)
 {
     Events = new EventsClient(apiConnection);
     Starring = new StarredClient(apiConnection);
     Watching = new WatchedClient(apiConnection);
     Feeds = new FeedsClient(apiConnection);
     Notifications = new NotificationsClient(apiConnection);
 }
开发者ID:cloudRoutine,项目名称:octokit.net,代码行数:13,代码来源:ActivitiesClient.cs

示例13: Setup

 public void Setup()
 {
     _mockApiConnection = MockRepository.GenerateMock<IApiConnection>();
     _mockStreamingManager = MockRepository.GenerateMock<IStreamingManager>();
     _mockMarketInfoServiceFactory = MockRepository.GenerateMock<MarketInfoServiceFactory>();
     _mockAccountInfoServiceFactory = MockRepository.GenerateMock<AccountInfoServiceFactory>();
     _mockCfdMarketServiceFactory = MockRepository.GenerateMock<CfdMarketServiceFactory>();
     _mockOrderServiceFactory = MockRepository.GenerateMock<OrderServiceFactory>();
 }
开发者ID:89sos98,项目名称:TradingApi.Client.CS,代码行数:9,代码来源:CiApiTests.cs

示例14: SetUp

        public void SetUp()
        {
            _mockApiConnection = MockRepository.GenerateMock<IApiConnection>();

            _mockLsCityindexStreamingConnectionFactory = MockRepository.GenerateMock<LsCityindexStreamingConnectionFactory>();
            _mockLsStreamingClientAccountConnectionFactory = MockRepository.GenerateMock<LsStreamingClientAccountConnectionFactory>();

            _mockLsCityindexStreamingConnection = MockRepository.GenerateMock<ILsCityindexStreamingConnection>();
            _mockLsStreamingClientAccountConnection = MockRepository.GenerateMock<ILsStreamingClientAccountConnection>();
        }
开发者ID:89sos98,项目名称:TradingApi.Client.CS,代码行数:10,代码来源:LightStreamerConnectionManagerTests.cs

示例15: DiscogsClient

 public DiscogsClient(IApiConnection apiConnection)
 {
     ApiConnection = apiConnection;
     Authentication = new AuthenticationClient(ApiConnection);
     Database = new DatabaseClient(ApiConnection);
     Images = new ImagesClient(ApiConnection);
     Marketplace = new MarketplaceClient(ApiConnection);
     UserCollection = new UserCollectionClient(ApiConnection);
     UserIdentity = new UserIdentityClient(ApiConnection);
     UserWantlist = new UserWantlistClient(ApiConnection);
 }
开发者ID:bartw,项目名称:BeeWee.DiscogsDotNet,代码行数:11,代码来源:DiscogsClient.cs


注:本文中的IApiConnection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。