public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, string?message, params object?[] args)
 {
 }
 public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, System.Exception?exception, string?message, params object?[] args)
 {
 }
 public static ExtensionConfigContext AddResolvedEventListToByteArrayListConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <IList <ResolvedEvent>, IList <byte[]> >(re => re?.Where(e => e.Event?.Data != null).Select(e => e.Event.Data).ToList());
 public static void Log(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.LogLevel logLevel, string?message, params object?[] args)
 {
 }
 public static ExtensionConfigContext AddResolvedEventListConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <IList <ResolvedEvent>, JArray>(re => JArray.FromObject(re.Select(e => ToJObject(e, logger))));
 public static ExtensionConfigContext AddResolvedEventListToStringConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <IList <ResolvedEvent>, string>(re => re == null ? null : JArray.FromObject(re.Select(e => ToJObject(e, logger))).ToString());
Exemplo n.º 7
0
 public ResourceManagerStringLocalizer(System.Resources.ResourceManager resourceManager, System.Reflection.Assembly resourceAssembly, string baseName, Microsoft.Extensions.Localization.IResourceNamesCache resourceNamesCache, Microsoft.Extensions.Logging.ILogger logger)
 {
 }
 public static ExtensionConfigContext AddJObjectConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <JObject, EventData>(payload => BuildFromPayload(payload.ToString(), logger));
Exemplo n.º 9
0
 public DefaultHubLifetimeManager(Microsoft.Extensions.Logging.ILogger <Microsoft.AspNetCore.SignalR.DefaultHubLifetimeManager <THub> > logger)
 {
 }
Exemplo n.º 10
0
 public ResourceManagerStringLocalizer(System.Resources.ResourceManager resourceManager, Microsoft.Extensions.Localization.Internal.IResourceStringProvider resourceStringProvider, string baseName, Microsoft.Extensions.Localization.IResourceNamesCache resourceNamesCache, Microsoft.Extensions.Logging.ILogger logger)
 {
 }
Exemplo n.º 11
0
 public static System.IDisposable?BeginScope(this Microsoft.Extensions.Logging.ILogger logger, string messageFormat, params object?[] args)
 {
     throw null;
 }
 public LoggingScopeHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Http.HttpClientFactoryOptions options)
 {
 }
 public LoggingScopeHttpMessageHandler(Microsoft.Extensions.Logging.ILogger logger)
 {
 }
Exemplo n.º 14
0
 public LoggerAdapter(Microsoft.Extensions.Logging.ILoggerFactory loggerFactory)
 {
     this.logger = loggerFactory.CreateLogger("StormpathMiddleware");
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MicrosoftILoggerTarget" /> class.
 /// </summary>
 /// <param name="logger">Microsoft ILogger singleton instance</param>
 public MicrosoftILoggerTarget(Microsoft.Extensions.Logging.ILogger logger)
 {
     _logger             = logger;
     Layout              = "${message}";
     OptimizeBufferReuse = true;
 }
Exemplo n.º 16
0
 public PlayerPrefsManagerBase(Microsoft.Extensions.Logging.ILogger logger,
                               IMemoryCache cache,
                               IAppSettingsSource appSettingsSource)
     : base(logger, cache, appSettingsSource)
 {
 }
 public HttpConnectionContext(string id, Microsoft.Extensions.Logging.ILogger logger)
 {
 }
 public static ExtensionConfigContext AddExpandoObjectConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <ExpandoObject, EventData>(payload => BuildFromPayload(JsonConvert.SerializeObject(payload), logger));
 public HttpConnectionContext(string id, System.IO.Pipelines.IDuplexPipe transport, System.IO.Pipelines.IDuplexPipe application, Microsoft.Extensions.Logging.ILogger logger = null)
 {
 }
 public static ExtensionConfigContext AddResolvedEventToStringConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <ResolvedEvent, string>(re => ToJObject(re, logger).ToString());
Exemplo n.º 21
0
 /// <summary>
 /// 注册
 /// </summary>
 void IAutoRegister.AutoRegist(IServiceCollection services, Microsoft.Extensions.Logging.ILogger logger) =>
 services.AddSingleton <IZeroOption>(pri => ConsulOption.Instance);
 public static ExtensionConfigContext AddResolvedEventToByteArrayConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <ResolvedEvent, byte[]>(re => re.Event?.Data);
Exemplo n.º 23
0
 public DefaultAuthorizationService(Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider handlers, Microsoft.Extensions.Logging.ILogger <Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> logger, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory contextFactory, Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator evaluator, Microsoft.Extensions.Options.IOptions <Microsoft.AspNetCore.Authorization.AuthorizationOptions> options)
 {
 }
 public ApplicationLifetime(Microsoft.Extensions.Logging.ILogger <Microsoft.Extensions.Hosting.Internal.ApplicationLifetime> logger)
 {
 }
 public static ExtensionConfigContext AddAllConverters(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 {
     return(context
            .AddJsonConverter(logger)
            .AddByteArrayConverter(logger)
            .AddEventDataConverter(logger)
            .AddJObjectConverter(logger)
            .AddDynamicConverter(logger)
            .AddExpandoObjectConverter(logger)
            .AddResolvedEventListConverter(logger)
            .AddResolvedEventConverter(logger)
            .AddResolvedEventToStringConverter(logger)
            .AddResolvedEventListToStringConverter(logger)
            .AddResolvedEventToByteArrayConverter(logger)
            .AddResolvedEventListToByteArrayListConverter(logger)
            .AddOpenConverter <IList <OpenType>, IList <EventStoreData> >(typeof(ToOpenTypeListConverter <>), logger)
            .AddOpenConverter <OpenType, EventStoreData>(typeof(ToOpenTypeConverter <>), logger)
            .AddOpenConverter <IList <ResolvedEvent>, IList <OpenType> >(typeof(FromOpenTypeConverter <>), logger));
 }
 public static void LogInformation(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, System.Exception?exception, string?message, params object?[] args)
 {
 }
 public static ExtensionConfigContext AddJsonConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <string, EventStoreData>(payload =>
 {
     if (IsValidJson(payload, logger))
     {
         var jt = JToken.Parse(payload);
         if (IsJsonOfTypeEventStoreData(jt, logger))
         {
             return(ParseEventStoreData(jt));
         }
         if (IsJsonOfTypeEventData(jt, logger))
         {
             return(BuildFromEventData(ParseEventData(jt)));
         }
     }
     return(BuildFromEventData(BuildFromPayload(payload, logger)));
 });
 public static void LogTrace(this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string?message, params object?[] args)
 {
 }
 public static ExtensionConfigContext AddByteArrayConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <byte[], string>(Encoding.UTF8.GetString);
Exemplo n.º 30
0
 public BaseController(ILogger logger)
 {
     this.logger = logger;
 }
 public static ExtensionConfigContext AddEventDataConverter(this ExtensionConfigContext context, Microsoft.Extensions.Logging.ILogger logger)
 => context.AddConverter <EventData, EventStoreData>(BuildFromEventData);
Exemplo n.º 32
0
 public static async Task WriteResponseAsync(IOwinContext context, Exception e, FrameworkLogger logger)
 {
     await WriteResponseAsync(context, HttpStatusCode.InternalServerError, JObject.FromObject(new { error = "Internal server error" }));
 }
 public RedisHubLifetimeManager(Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager<THub>> logger, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisOptions> options, Microsoft.AspNetCore.SignalR.IHubProtocolResolver hubProtocolResolver, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> globalHubOptions, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<THub>> hubOptions) { }