Example #1
0
        /// <inheritdoc />
        Skin IRepository <int, Skin> .Find(int identifier)
        {
            var request = new SkinDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo),
                Culture    = ((ILocalizable)this).Culture
            };
            var response = this.serviceClient.Send <SkinDTO>(request);

            return(this.responseConverter.Convert(response, null));
        }
Example #2
0
        /// <inheritdoc />
        async Task <Skin> IRepository <int, Skin> .FindAsync(int identifier, CancellationToken cancellationToken)
        {
            var request = new SkinDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo),
                Culture    = ((ILocalizable)this).Culture
            };
            var response = await this.serviceClient.SendAsync <SkinDTO>(request, cancellationToken).ConfigureAwait(false);

            return(this.responseConverter.Convert(response, null));
        }
Example #3
0
        /// <inheritdoc />
        Task <Skin> IRepository <int, Skin> .FindAsync(int identifier, CancellationToken cancellationToken)
        {
            var request = new SkinDetailsRequest
            {
                Identifier = identifier.ToString(NumberFormatInfo.InvariantInfo),
                Culture    = ((ILocalizable)this).Culture
            };
            var responseTask = this.serviceClient.SendAsync <SkinDataContract>(request, cancellationToken);

            return(responseTask.ContinueWith <Skin>(this.ConvertAsyncResponse, cancellationToken));
        }