/// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ReturnListRequest             = new ReturnListRequest(this);
     ReturnArrayRequest            = new ReturnArrayRequest(this);
     ReturnKeyValuePairRequest     = new ReturnKeyValuePairRequest(this);
     ReturnDictionaryStringRequest = new ReturnDictionaryStringRequest(this);
     ReturnDictionaryDtoRequest    = new ReturnDictionaryDtoRequest(this);
     GetSession = new GetSession(this);
     UpdateSessioneditCustomName = new UpdateSessioneditCustomName(this);
     Hello                   = new HelloOperations(this);
     HelloName               = new HelloName(this);
     HelloList               = new HelloListOperations(this);
     HelloArray              = new HelloArrayOperations(this);
     AllowedAttributes       = new AllowedAttributesOperations(this);
     HelloAllTypes           = new HelloAllTypesOperations(this);
     HelloAllTypesWithResult = new HelloAllTypesWithResultOperations(this);
     HelloString             = new HelloStringOperations(this);
     HelloDateTime           = new HelloDateTimeOperations(this);
     HelloVoid               = new HelloVoidOperations(this);
     HelloWithRoute          = new HelloWithRouteOperations(this);
     HelloTypes              = new HelloTypesOperations(this);
     HelloZip                = new HelloZipOperations(this);
     SecuredRequest          = new SecuredRequest(this);
     SecuredDtoRequest       = new SecuredDtoRequest(this);
     SecuredOpsRequest       = new SecuredOpsRequest(this);
     Authenticate            = new AuthenticateOperations(this);
     Authenticateprovider    = new Authenticateprovider(this);
     Authenticate2           = new Authenticate2(this);
     Authenticateprovider2   = new Authenticateprovider2(this);
     AssignRoles             = new AssignRolesOperations(this);
     UnAssignRoles           = new UnAssignRolesOperations(this);
     BaseUri                 = new System.Uri("http://localhost:20000/");
     Accept                  = "application/json";
     SerializationSettings   = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new  List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 /// <param name='body'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UnAssignRolesResponse> CreateAsync(this IUnAssignRolesOperations operations, string userName = default(string), string permissions = default(string), string roles = default(string), UnAssignRoles body = default(UnAssignRoles), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(userName, permissions, roles, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UnAssignRolesResponse> GetAsync(this IUnAssignRolesOperations operations, string userName = default(string), IList <string> permissions = default(IList <string>), IList <string> roles = default(IList <string>), string format = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(userName, permissions, roles, format, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static UnAssignRolesResponse Post(this IUnAssignRolesOperations operations, string userName = default(string), string permissions = default(string), string roles = default(string), UnAssignRoles body = default(UnAssignRoles))
 {
     return(operations.PostAsync(userName, permissions, roles, body).GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 public static UnAssignRolesResponse Delete(this IUnAssignRolesOperations operations, string userName = default(string), string permissions = default(string), string roles = default(string))
 {
     return(operations.DeleteAsync(userName, permissions, roles).GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 public static UnAssignRolesResponse Create(this IUnAssignRolesOperations operations, string userName = default(string), IList <string> permissions = default(IList <string>), IList <string> roles = default(IList <string>), string format = "json")
 {
     return(operations.CreateAsync(userName, permissions, roles, format).GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='userName'>
 /// </param>
 /// <param name='permissions'>
 /// </param>
 /// <param name='roles'>
 /// </param>
 /// <param name='body'>
 /// </param>
 public static UnAssignRolesResponse Delete(this IUnAssignRolesOperations operations, string userName = default(string), IList <string> permissions = default(IList <string>), IList <string> roles = default(IList <string>), UnAssignRoles body = default(UnAssignRoles))
 {
     return(operations.DeleteAsync(userName, permissions, roles, body).GetAwaiter().GetResult());
 }
Пример #8
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     ThrowHttpError       = new ThrowHttpErrorOperations(this);
     Throw404             = new Throw404Operations(this);
     ThrowCustom400       = new ThrowCustom400Operations(this);
     ThrowType            = new ThrowTypeOperations(this);
     ThrowValidation      = new ThrowValidationOperations(this);
     ThrowBusinessError   = new ThrowBusinessError(this);
     ImageAsStream        = new ImageAsStreamOperations(this);
     ImageAsBytes         = new ImageAsBytesOperations(this);
     ImageAsCustomResult  = new ImageAsCustomResultOperations(this);
     ImageWriteToResponse = new ImageWriteToResponseOperations(this);
     ImageAsFile          = new ImageAsFileOperations(this);
     ImageAsRedirect      = new ImageAsRedirectOperations(this);
     DrawImage            = new DrawImageOperations(this);
     MetadataTest         = new MetadataTestOperations(this);
     MetadataTestArray    = new MetadataTestArrayOperations(this);
     GetExample           = new GetExample(this);
     GetRandomIds         = new GetRandomIdsOperations(this);
     TextFileTest         = new TextFileTestOperations(this);
     Hello                 = new HelloOperations(this);
     HelloAllTypes         = new HelloAllTypesOperations(this);
     HelloWithRoute        = new HelloWithRouteOperations(this);
     HelloTypes            = new HelloTypesOperations(this);
     HelloZip              = new HelloZipOperations(this);
     Ping                  = new Ping(this);
     RequiresRole          = new RequiresRole(this);
     ReturnString          = new ReturnStringOperations(this);
     ReturnBytes           = new ReturnBytesOperations(this);
     ReturnStream          = new ReturnStreamOperations(this);
     GetRequest1           = new GetRequest1(this);
     GetRequest2           = new GetRequest2(this);
     SendRestGet           = new SendRestGetOperations(this);
     GetSession            = new GetSession(this);
     UpdateSession         = new UpdateSessionOperations(this);
     TestAuth              = new TestAuth(this);
     TestVoidResponse      = new TestVoidResponse(this);
     TestNullResponse      = new TestNullResponse(this);
     Wait                  = new WaitOperations(this);
     EchoTypes             = new EchoTypesOperations(this);
     EchoCollections       = new EchoCollectionsOperations(this);
     IdentityTestRequest2  = new IdentityTestRequest2Operations(this);
     QueryRockstars        = new QueryRockstarsOperations(this);
     Authenticate          = new AuthenticateOperations(this);
     AssignRoles           = new AssignRolesOperations(this);
     UnAssignRoles         = new UnAssignRolesOperations(this);
     BaseUri               = new System.Uri("http://localhost:49204/");
     SerializationSettings = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new  List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
 }