public GithubClient(IGithubCmdlet pscmdlet, PSCredential credentials, string githubRepository) { _factories = new Dictionary<string, WebChannelFactory<IGithubServiceManagement>>(); Pscmdlet = pscmdlet; if (Pscmdlet.MyInvocation != null) { invocationPath = Pscmdlet.MyInvocation.MyCommand.Module.Path; } Credentials = credentials; RepositoryFullName = githubRepository; }
public GithubClient( IGithubCmdlet pscmdlet, PSCredential credentials, string githubRepository) { _factories = new Dictionary <string, WebChannelFactory <IGithubServiceManagement> >(); PSCmdlet = pscmdlet; if (PSCmdlet.MyInvocation != null) { InvocationPath = PSCmdlet.MyInvocation.MyCommand.Module.Path; } Credentials = credentials; RepositoryFullName = githubRepository; }
public GithubClientAccessor(IGithubCmdlet pscmdlet, PSCredential githubCredentials, string githubRepository) : base(pscmdlet, githubCredentials, githubRepository) { }