/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='session'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Session> PostSessionAsync(this ISessions operations, Session session, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostSessionWithHttpMessagesAsync(session, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the sessions for the current folder. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Read. /// /// Required permissions: Robots.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='filter'> /// Filters the results, based on a Boolean condition. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='orderby'> /// Sorts the results. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='skip'> /// Skips the first n results. /// </param> /// <param name='count'> /// Includes a count of the matching results in the response. /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueIEnumerableSessionDto> GetAsync(this ISessions operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), long?xUIPATHOrganizationUnitId = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete the current session (sign out) /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='authorization'> /// Format is: "Scheme CredentialsList". Possible values are: /// /// - Anon AK=AppKey /// /// - SocialPlus TK=SessionToken /// /// - Facebook AK=AppKey|TK=AccessToken /// /// - Google AK=AppKey|TK=AccessToken /// /// - Twitter AK=AppKey|RT=RequestToken|TK=AccessToken /// /// - Microsoft AK=AppKey|TK=AccessToken /// /// - AADS2S AK=AppKey|[UH=UserHandle]|TK=AADToken /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> DeleteSessionAsync(this ISessions operations, string authorization, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteSessionWithHttpMessagesAsync(authorization, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets usernames. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Read. /// /// Required permissions: Robots.View or Users.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='filter'> /// Restricts the set of items returned. The maximum number of expressions is /// 100. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='orderby'> /// Specifies the order in which items are returned. The maximum number of /// expressions is 5. /// </param> /// <param name='top'> /// Limits the number of items returned from a collection. The maximum value is /// 1000. /// </param> /// <param name='skip'> /// Excludes the specified number of items of the queried collection from the /// result. /// </param> /// <param name='count'> /// Indicates whether the total count of items within a collection are returned /// in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataValueOfIEnumerableOfString> GetUsernamesAsync(this ISessions operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUsernamesWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create a new session (sign in) /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='request'> /// Post session request /// </param> /// <param name='authorization'> /// Format is: "Scheme CredentialsList". Possible values are: /// /// - Anon AK=AppKey /// /// - SocialPlus TK=SessionToken /// /// - Facebook AK=AppKey|TK=AccessToken /// /// - Google AK=AppKey|TK=AccessToken /// /// - Twitter AK=AppKey|RT=RequestToken|TK=AccessToken /// /// - Microsoft AK=AppKey|TK=AccessToken /// /// - AADS2S AK=AppKey|[UH=UserHandle]|TK=AADToken /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PostSessionResponse> PostSessionAsync(this ISessions operations, PostSessionRequest request, string authorization, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostSessionWithHttpMessagesAsync(request, authorization, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Session> GetSessionByIdAsync(this ISessions operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSessionByIdWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the sessions. /// </summary> /// <remarks> /// Required permissions: Robots.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='filter'> /// Filters the results, based on a Boolean condition. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> /// <param name='orderby'> /// Sorts the results. /// </param> /// <param name='top'> /// Returns only the first n results. /// </param> /// <param name='skip'> /// Skips the first n results. /// </param> /// <param name='count'> /// Includes a count of the matching results in the response. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ODataResponseListSessionDto> GetSessionsAsync(this ISessions operations, string expand = default(string), string filter = default(string), string select = default(string), string orderby = default(string), int?top = default(int?), int?skip = default(int?), bool?count = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetSessionsWithHttpMessagesAsync(expand, filter, select, orderby, top, skip, count, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public HealthCheckController(ISettings settings, ISessions sessions, IBodyTelemetryStorage telemetryStorage, IHealthChecker healthChecker) : base(settings, sessions) { _telemetryStorage = telemetryStorage; _healthChecker = healthChecker; }
public TelemetryController(ISettings settings, ISessions sessions, IBodyTelemetryStorage bodyTelemetryStorage, ISerializer serializer) : base(settings, sessions) { _bodyTelemetryStorage = bodyTelemetryStorage; _serializer = serializer; }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { this.Halls = new Halls(this); this.Sessions = new Sessions(this); this.BaseUri = new Uri("https://xamarindboperationsample.azurewebsites.net"); SerializationSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Ignore, ReferenceLoopHandling = ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Ignore, ReferenceLoopHandling = ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
public SignInController(IPasswords passwords, ISessions sessions, IVendorInfos vendorInfos, ISessionSource sessionSource) { _passwords = passwords; _sessions = sessions; _vendorInfos = vendorInfos; _sessionSource = sessionSource; }
/// <summary> /// Initializes a new instance of the SNEKPrepService class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The set of delegating handlers to insert in the http /// client pipeline. /// </param> public SNEKPrepService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { this._conference = new Conference(this); this._sessions = new Sessions(this); this._speakers = new Speakers(this); this._baseUri = new Uri("https://snekprepservice.azurewebsites.net"); }
/// <summary> /// Initializes a new instance of the SNEKPrepService class. /// </summary> public SNEKPrepService() : base() { this._conference = new Conference(this); this._sessions = new Sessions(this); this._speakers = new Speakers(this); this._baseUri = new Uri("https://snekprepservice.azurewebsites.net"); }
/// <param name='operations'> /// Reference to the MyUniversalWindows10App.ISessions. /// </param> /// <param name='search'> /// Required. /// </param> public static IList <Session> FindBySeachterm(this ISessions operations, string search) { return(Task.Factory.StartNew((object s) => { return ((ISessions)s).FindBySeachtermAsync(search); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
public BodyModelController(ISettings settings, ISessions sessions, IBodyModelsStorage bodyModelsStorage, ISerializer serializer, IVendorInfos vendors) : base( settings, sessions) { _bodyModelsStorage = bodyModelsStorage; _serializer = serializer; _vendors = vendors; }
public AuthController(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager) { var bl = new BusinessManager(); session = bl.GetSession(); _userManager = userManager; _signInManager = signInManager; }
public EventSystem(IDAFactory da, CityServerContext ctx, ISessions sessions, IKernel kernel, Tuning tuning) { DA = da; Kernel = kernel; Context = ctx; Sessions = sessions; TuningDomain = tuning; }
/// <param name='operations'> /// Reference to the MyUniversalWindows10App.ISessions. /// </param> /// <param name='id'> /// Required. /// </param> public static Session GetById(this ISessions operations, int id) { return(Task.Factory.StartNew((object s) => { return ((ISessions)s).GetByIdAsync(id); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the MyUniversalWindows10App.ISessions. /// </param> /// <param name='track'> /// Required. /// </param> public static IList <Session> GetByTrack(this ISessions operations, int track) { return(Task.Factory.StartNew((object s) => { return ((ISessions)s).GetByTrackAsync(track); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
public ChangeRoommateHandler(ISessions sessions, IDAFactory da, CityServerContext context, IDataService dataService, LotServerPicker lotServers, LotAllocations lots) { this.Sessions = sessions; this.DAFactory = da; this.Context = context; this.DataService = dataService; this.LotServers = lotServers; this.Lots = lots; }
public VoltronConnectionLifecycleHandler(ISessions sessions, IDataService dataService, IDAFactory da, CityServerContext context, LotServerPicker lotServers, CityLivenessEngine engine, EventSystem events, Neighborhoods neigh) { this.VoltronSessions = sessions.GetOrCreateGroup(Groups.VOLTRON); this.Sessions = sessions; this.DataService = dataService; this.DAFactory = da; this.Context = context; this.LotServers = lotServers; this.Liveness = engine; this.Events = events; this.Neigh = neigh; }
public SeatBookingsController( SeatBookingDBContext context, UserManager <IdentityUser> userManager, ISessions sessions, IDBCallsSessionDataDTO dbCallsSessionData, ICalService calService, IGenerateCalendarEventsForControllers generateCalendarEventsForControllers, IStudentNameDTO studentNameDTO) { _context = context; _userManager = userManager; _sessions = sessions; _dbCallsSessionDataDTO = dbCallsSessionData; _calService = calService; _generateCalendarEventsForControllers = generateCalendarEventsForControllers; _studentNameDTO = studentNameDTO; // _addUserToStudentTable = new AddUserToStudentTable(this); }
public MailHandler(ISessions sessions, IDataService dataService, IDAFactory da) { this.Sessions = sessions; this.DataService = dataService; this.DA = da; }
public CityLivenessEngine(ISessions sessions, EventSystem events) { Sessions = sessions; Events = events; }
public MessagingHandler(ISessions sessions, IDataService dataService) { Sessions = sessions; DataService = dataService; }
public HomeController(ISessions sessions, ILoggerFactory loggerFactory) { _sessions = sessions; _logger = loggerFactory.CreateLogger<HomeController>(); }
public SessionsController(ISessions sessions) { _sessions = sessions; }