本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: HipChatClient
public HipChatClient(IApiConnection apiConnection) : base(apiConnection)
{
Rooms =new RoomsClient(apiConnection);
Users = new UsersClient(apiConnection);
Emoticons = new EmoticonsClient(apiConnection);
Capabilities = new CapabilitiesClient(apiConnection);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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>();
}
示例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>();
}
示例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);
}