Beispiel #1
0
        /// <summary>Snippet for GetLoginProfileAsync</summary>
        public async Task GetLoginProfileAsync()
        {
            // Snippet: GetLoginProfileAsync(UserName,CallSettings)
            // Additional: GetLoginProfileAsync(UserName,CancellationToken)
            // Create client
            OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();

            // Initialize request argument(s)
            UserName name = new UserName("[USER]");
            // Make the request
            LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(name);

            // End snippet
        }
        /// <summary>Snippet for GetLoginProfileAsync</summary>
        public async Task GetLoginProfileAsync_RequestObject()
        {
            // Snippet: GetLoginProfileAsync(GetLoginProfileRequest,CallSettings)
            // Create client
            OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetLoginProfileRequest request = new GetLoginProfileRequest
            {
                UserName = new UserName("[USER]"),
            };
            // Make the request
            LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(request);

            // End snippet
        }
        /// <summary>Snippet for GetLoginProfileAsync</summary>
        public async Task GetLoginProfileRequestObjectAsync()
        {
            // Snippet: GetLoginProfileAsync(GetLoginProfileRequest, CallSettings)
            // Additional: GetLoginProfileAsync(GetLoginProfileRequest, CancellationToken)
            // Create client
            OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetLoginProfileRequest request = new GetLoginProfileRequest
            {
                UserName  = UserName.FromUser("[USER]"),
                ProjectId = "",
                SystemId  = "",
            };
            // Make the request
            LoginProfile response = await osLoginServiceClient.GetLoginProfileAsync(request);

            // End snippet
        }